]> Untitled Git - lemmy.git/commit
Fixes #1884 - Support Spoiler Tags (#3018)
authorNina Blanson <nina.m.blanson@gmail.com>
Wed, 14 Jun 2023 11:15:59 +0000 (06:15 -0500)
committerGitHub <noreply@github.com>
Wed, 14 Jun 2023 11:15:59 +0000 (13:15 +0200)
commit1c7bfd6be8068bc0726e5ce6063d04b5b40dfb14
tree86e2e15356bf836bfb6607dab7d20717d5e5d7e0
parentf3f95e5d2f2064be4c4c4997309fbb23ff8cbf85
Fixes #1884 - Support Spoiler Tags (#3018)

* Fixes #1884 - Switches markdown libraries and creates a custom rule to manage spoiler blocks

* Add tests to cover invalid spoiler input

* Consolidate tests, add comments

* Make immutable, static instance of markdown parser

---------

Co-authored-by: Nutomic <me@nutomic.com>
Cargo.lock
crates/utils/Cargo.toml
crates/utils/src/utils/markdown.rs
crates/utils/src/utils/markdown/spoiler_rule.rs [new file with mode: 0644]