mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-11-09 02:34:26 +00:00
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 | ||