mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 23:03:34 +01:00
a177a5c4cb
This lifts out the GitHub callout transformer from `modules/markup/markdown/goldmark.go` to `callout/github.go`. While there, clean up the transformer code: - Use a map to look up supported callout types, rather than a regexp. - Allow the callout type to be in any case, rather than just uppercase. - Simplified `.Segment.Value()` to `.Text()`. Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu> |
||
---|---|---|
.. | ||
callout | ||
math | ||
ast.go | ||
convertyaml.go | ||
goldmark.go | ||
markdown.go | ||
markdown_test.go | ||
meta.go | ||
meta_test.go | ||
renderconfig.go | ||
renderconfig_test.go | ||
toc.go |