forgejo/modules/markup/markdown
Gusted e428231b38 [BUG] Don't color dot literal color names
- Colordots are generated for colors in inline code, such as `red`,
`rgb(255, 0, 124)`, `#ffaabb` and `hsl(124, 52%, 50%)`. However this
shouldn't be doon for literal color names as these can be too common
assiocated with non-color related stuff _and matches the behavior of
some other forge_.
- Move the regexes from bluemonday to Forgejo and do the checking
ourselves.
- Adds unit tests.
- Resolves https://codeberg.org/Codeberg/Community/issues/1510
2024-03-30 22:12:40 +00:00
..
callout
math
ast.go
color_util.go [BUG] Don't color dot literal color names 2024-03-30 22:12:40 +00:00
color_util_test.go [BUG] Don't color dot literal color names 2024-03-30 22:12:40 +00:00
convertyaml.go
goldmark.go [BUG] Don't color dot literal color names 2024-03-30 22:12:40 +00:00
markdown.go
markdown_test.go
meta.go
meta_test.go
renderconfig.go
renderconfig_test.go
toc.go