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:
parent
a177a5c4cb
commit
b594188623
2 changed files with 61 additions and 0 deletions
|
@ -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),
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue