]> source.dussan.org Git - gitea.git/commit
Render plaintext task list items for markdown files (#26186)
authorEarl Warren <109468362+earl-warren@users.noreply.github.com>
Thu, 27 Jul 2023 14:15:31 +0000 (16:15 +0200)
committerGitHub <noreply@github.com>
Thu, 27 Jul 2023 14:15:31 +0000 (14:15 +0000)
commiteaea530d6bc84b23e6ff14ff8c2a74aa3b67ecd0
tree9ee6346b7a2f8832b5c1ba37d2d9b969238ec537
parent16afe4f63181a68565785c04885ed7d38b408fa9
Render plaintext task list items for markdown files (#26186)

- The library that's being used for org-mode, [doesn't render the status
of list items](https://github.com/niklasfasching/go-org/issues/63).
- Add a modified version of the proposed CSS snippet to still display
the status for the list items. The alternative was parsing HTML and
transforming it, which is too complicated for this small task.
- Resolves https://codeberg.org/Codeberg/Community/issues/1099

(cherry picked from commit 9753c7e4b8490b8f1e3d19cb06187503b88afb88)

Refs: https://codeberg.org/forgejo/forgejo/pulls/1071

Co-authored-by: Gusted <postmaster@gusted.xyz>
modules/markup/sanitizer.go
modules/markup/sanitizer_test.go
web_src/css/markup/content.css