Skip to content

Commit b438575

Browse files
committed
fix(blackfriday): codeblock breaks due extensions conflict
Bisecting this wasn't fun. So, the issue is that if you use any extensions after blackfriday.CommonExtensions it breaks codeblocks. Additionally, I couldn't verify that footnotes or title block actually work, so those extensions are now disabled.
1 parent b961c91 commit b438575

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

syntax/renderers/customBlackfriday/convert_blackfriday.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,6 @@ func (b *BlackfridayRenderer) Convert(gmiContent string, wrap bool) string {
9797
[]byte(input),
9898
blackfriday.WithRenderer(proxy),
9999
blackfriday.WithExtensions(blackfriday.CommonExtensions),
100-
blackfriday.WithExtensions(blackfriday.HeadingIDs),
101-
blackfriday.WithExtensions(blackfriday.Footnotes),
102-
blackfriday.WithExtensions(blackfriday.Titleblock),
103100
)
104101
safe := bluemonday.UGCPolicy().SanitizeBytes(unsafe)
105102

0 commit comments

Comments
 (0)