Make Markdown fenced code block work with more syntaxes (#37154)

This commit is contained in:
wxiaoguang
2026-04-10 07:54:39 +08:00
committed by GitHub
parent c10a5b908a
commit 45c80bfec1
3 changed files with 53 additions and 0 deletions
+2
View File
@@ -70,6 +70,8 @@ func (g *ASTTransformer) Transform(node *ast.Document, reader text.Reader, pc pa
}
case *ast.CodeSpan:
g.transformCodeSpan(ctx, v, reader)
case *ast.FencedCodeBlock:
g.transformFencedCodeblock(v, reader)
case *ast.Blockquote:
return g.transformBlockquote(v, reader)
}