1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-05-11 05:55:29 +00:00

Refactor markdown attention render (#29984)

Follow #29833 and add tests
This commit is contained in:
wxiaoguang
2024-03-22 20:16:23 +08:00
committed by GitHub
parent 6845717158
commit 2ff213bbc1
5 changed files with 145 additions and 65 deletions

View File

@ -126,7 +126,7 @@ func SpecializedMarkdown() goldmark.Markdown {
parser.WithAttribute(),
parser.WithAutoHeadingID(),
parser.WithASTTransformers(
util.Prioritized(&ASTTransformer{}, 10000),
util.Prioritized(NewASTTransformer(), 10000),
),
),
goldmark.WithRendererOptions(