From 70e1f3a15cdf1cf5d117c4eb98549b61294ba189 Mon Sep 17 00:00:00 2001
From: swag You can use an actual tab character or four spaces to indent.
- Only Markdown is supported, HTML will be filtered
- out.
and input
---
lib/PostText.pm | 6 +++++-
templates/page/about.html.ep | 5 +++--
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/lib/PostText.pm b/lib/PostText.pm
index 05fb4ae..dd16d95 100644
--- a/lib/PostText.pm
+++ b/lib/PostText.pm
@@ -33,7 +33,11 @@ sub startup($self) {
$self->helper(hr => sub ($c) {
state $hr = HTML::Restrict->new(
filter_text => 0,
- strip_enclosed_content => []
+ strip_enclosed_content => [],
+ rules => {
+ br => [],
+ s => []
+ }
)
});
diff --git a/templates/page/about.html.ep b/templates/page/about.html.ep
index 55dc25b..e3fed38 100644
--- a/templates/page/about.html.ep
+++ b/templates/page/about.html.ep
@@ -27,8 +27,9 @@ This is correct for a multi-line code block:
}
<br>
and
+ <s>
are supported. All other HTML will
+ be filtered out.
There is a button for users to 'flag' a post for review by a moderator. If you need further assistance you can reach out to the webmaster. There is