From d775ae2ce648c7d335d21eaefe0ddd25a8f4f0b6 Mon Sep 17 00:00:00 2001 From: swaggboi Date: Mon, 10 Feb 2025 15:45:59 -0500 Subject: [PATCH] Document the use of `filter_text => 0` --- README.md | 1 - lib/PostText.pm | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 56de619..f30fa1c 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/lib/PostText.pm b/lib/PostText.pm index 1f68e6a..4344d3f 100644 --- a/lib/PostText.pm +++ b/lib/PostText.pm @@ -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 => {