1
0
Fork 0
forked from forgejo/forgejo

Restore compatibility with the legacy GitHub callout syntax

Although GitHub removed support for the legacy callout syntax, we don't
have to! Restore this support via another AST transformer.

Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
This commit is contained in:
Gergely Nagy 2024-02-17 17:36:36 +01:00
parent a177a5c4cb
commit b594188623
No known key found for this signature in database
2 changed files with 61 additions and 0 deletions

View file

@ -125,6 +125,7 @@ func SpecializedMarkdown() goldmark.Markdown {
parser.WithAttribute(),
parser.WithAutoHeadingID(),
parser.WithASTTransformers(
util.Prioritized(&callout.GitHubLegacyCalloutTransformer{}, 8000),
util.Prioritized(&callout.GitHubCalloutTransformer{}, 9000),
util.Prioritized(&ASTTransformer{}, 10000),
),