diff --git a/markup/goldmark/convert_test.go b/markup/goldmark/convert_test.go index ecb308eba..2227d6187 100644 --- a/markup/goldmark/convert_test.go +++ b/markup/goldmark/convert_test.go @@ -278,6 +278,16 @@ func TestConvertAttributes(t *testing.T) { "table style", }, }, + { + "Code block, CodeFences=true,lineanchors", + func(conf *markup_config.Config) { + withBlockAttributes(conf) + conf.Highlight.CodeFences = true + conf.Highlight.NoClasses = false + }, + "```bash {linenos=table, anchorlinenos=true, lineanchors=org-coderef--xyz}\necho 'foo';\n```", + "
\n\n
\n
1\n
\n
echo 'foo';\n
\n
\n
", + }, { "Paragraph", withBlockAttributes,