Allow <br> and <s> input

This commit is contained in:
swag 2023-05-27 13:04:15 -04:00
parent f74e57846c
commit 70e1f3a15c
2 changed files with 8 additions and 3 deletions

View File

@ -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 => []
}
)
});

View File

@ -27,8 +27,9 @@ This is correct for a multi-line code block:
}
</code></pre>
<p>You can use an actual tab character or four spaces to indent.
<strong>Only Markdown is supported, HTML will be filtered
out.</strong></p>
Only Markdown as well as the HTML tags <code>&lt;br&gt;</code> and
<code>&lt;s&gt;</code> are supported. <strong>All other HTML will
be filtered out.</strong></p>
<p>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
<a href="mailto:swaggboi@slackware.uk">webmaster</a>. There is