Document the use of filter_text => 0

This commit is contained in:
swagg boi 2025-02-10 15:45:59 -05:00
parent c3129511c6
commit d775ae2ce6
2 changed files with 2 additions and 1 deletions

View File

@ -61,7 +61,6 @@ tests locally:
## TODOs
- Figure out why `filter_text` is set to `0` and document that?
- Stop working on this and start the imageboard
## AGPL-3.0+ANTIFA compliance

View File

@ -30,6 +30,8 @@ sub startup($self) {
$self->helper(hr => sub ($c) {
state $hr = HTML::Restrict->new(
# filter_text breaks greater and less than symbols in Markdown code blocks
# Also breaks Markdown quote blocks
filter_text => 0,
strip_enclosed_content => [],
rules => {