codeberg-forgejo/modules/markup
tastytea bf03b66802 CB/ui: add styling for asciidoc classes (!44)
This adds a few asciidoctor classes to the sanitizer and adds styling for them.

- support for making elements `float`
- support for [tables without borders](https://codeberg.org/tastytea/asciidoctor-rendering-test/src/branch/main/README.adoc#_with_gridnone)
- make [TOC-title](https://codeberg.org/tastytea/asciidoctor-rendering-test/src/branch/main/README.adoc) bold
- make [admonition blocks](https://codeberg.org/tastytea/asciidoctor-rendering-test/src/branch/main/README.adoc#_admonitions) look nice

I tried adding more border-styles for tables, but clashed with existing rules and couldn't figure out how to solve it. I don't think it's that important for this use-case so i didn't try too hard. 😊

Co-authored-by: tastytea <tastytea@tastytea.de>
Reviewed-on: https://codeberg.org/Codeberg/gitea/pulls/44
Co-authored-by: tastytea <tastytea@noreply.codeberg.org>
Co-committed-by: tastytea <tastytea@noreply.codeberg.org>
2023-04-23 00:46:32 +02:00
..
common Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
console Allow render HTML with css/js external links (#19017) 2022-06-16 11:33:23 +08:00
csv Allow render HTML with css/js external links (#19017) 2022-06-16 11:33:23 +08:00
external Log STDERR of external renderer when it fails (#22442) (#22444) 2023-01-14 23:14:27 +00:00
markdown Support comma-delimited string as labels in issue template (#21831) (#21873) 2022-11-20 10:44:20 +00:00
mdstripper Go 1.19 format (#20758) 2022-08-30 21:15:45 -05:00
orgmode Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2022-10-24 20:29:17 +01:00
camo.go Provide configuration to allow camo-media proxying (#12802) 2022-03-29 10:27:37 +02:00
camo_test.go Provide configuration to allow camo-media proxying (#12802) 2022-03-29 10:27:37 +02:00
html.go Fix README TOC links (#22577) (#22677) 2023-01-31 17:23:19 +08:00
html_internal_test.go Custom regexp external issues (#17624) 2022-06-10 13:39:53 +08:00
html_test.go Fix slight bug in katex (#21171) 2022-10-05 19:55:36 +01:00
renderer.go Add link to user profile in markdown mention only if user exists (#21533) 2022-10-23 01:15:52 +08:00
renderer_test.go Should also support upper-case README files (#20581) 2022-08-01 20:15:40 +08:00
sanitizer.go CB/ui: add styling for asciidoc classes (!44) 2023-04-23 00:46:32 +02:00
sanitizer_test.go Allow to specify colors for text in markup (#20363) 2022-07-15 14:38:10 +08:00