1
0
Fork 0
codeberg-forgejo/modules/markup
tastytea 323a7df456
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-08-03 19:19:31 +02:00
..
asciicast Support asciicast files as new markup (#22448) 2023-01-18 08:46:58 +08:00
common Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
console Add context when rendering labels or emojis (#23281) 2023-03-05 22:59:05 +01:00
csv Add context when rendering labels or emojis (#23281) 2023-03-05 22:59:05 +01:00
external Log STDERR of external renderer when it fails (#22442) 2023-01-13 20:41:23 +00:00
markdown Replace `interface{}` with `any` (#25686) (#25687) 2023-07-04 23:41:32 -04:00
mdstripper Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
orgmode Add context when rendering labels or emojis (#23281) 2023-03-05 22:59:05 +01:00
camo.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
camo_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
html.go Add RTL rendering support to Markdown (#24816) 2023-05-20 23:02:52 +02:00
html_internal_test.go Replace `interface{}` with `any` (#25686) (#25687) 2023-07-04 23:41:32 -04:00
html_test.go Refactor path & config system (#25330) (#25416) 2023-06-22 16:27:18 +00:00
renderer.go Add RTL rendering support to Markdown (#24816) 2023-05-20 23:02:52 +02:00
renderer_test.go Move `IsReadmeFile*` from `modules/markup/` to `modules/util` (#22877) 2023-02-13 15:01:09 -05:00
sanitizer.go CB/ui: add styling for asciidoc classes (!44) 2023-08-03 19:19:31 +02:00
sanitizer_test.go Disallow dangerous URL schemes (#25960) (#25964) 2023-07-24 07:58:56 +02:00