forgejo/modules/markup/markdown
Gergely Nagy a177a5c4cb
modules/markup: Lift out the GitHub callout transformer
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>
2024-02-17 18:04:55 +01:00
..
callout modules/markup: Lift out the GitHub callout transformer 2024-02-17 18:04:55 +01:00
math [GITEA] Require Latex code to have a end sequence 2024-02-05 16:09:41 +01:00
ast.go modules/markup: Lift out the GitHub callout transformer 2024-02-17 18:04:55 +01:00
convertyaml.go Improve Wiki TOC (#24137) 2023-04-17 15:05:19 -04:00
goldmark.go modules/markup: Lift out the GitHub callout transformer 2024-02-17 18:04:55 +01:00
markdown.go modules/markup: Lift out the GitHub callout transformer 2024-02-17 18:04:55 +01:00
markdown_test.go [GITEA] Add footnote testing 2024-02-05 16:09:41 +01:00
meta.go Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
meta_test.go
renderconfig.go Fix task list checkbox toggle to work with YAML front matter (#25184) 2023-06-13 14:44:47 +08:00
renderconfig_test.go Improve Wiki TOC (#24137) 2023-04-17 15:05:19 -04:00
toc.go Refactor locale&string&template related code (#29165) 2024-02-16 15:20:52 +01:00