From b725253f9e3033e18bd45096c0622e6fb7b1ff79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sat, 20 Mar 2021 16:36:30 +0100 Subject: Attributes for code fences should be placed after the lang indicator only Fixes #8313 --- markup/goldmark/convert_test.go | 12 +++++++++++- markup/goldmark/internal/extensions/attributes/attributes.go | 12 +++++++++--- 2 files changed, 20 insertions(+), 4 deletions(-) (limited to 'markup') diff --git a/markup/goldmark/convert_test.go b/markup/goldmark/convert_test.go index c7367dd01..2b66a1910 100644 --- a/markup/goldmark/convert_test.go +++ b/markup/goldmark/convert_test.go @@ -242,9 +242,19 @@ func TestConvertAttributes(t *testing.T) { withBlockAttributes(conf) conf.Highlight.CodeFences = true }, - "```bash\necho 'foo';\n````\n{.myclass id=\"myid\"}", + "```bash {.myclass id=\"myid\"}\necho 'foo';\n````\n", "