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) { $self->helper(hr => sub ($c) {
state $hr = HTML::Restrict->new( state $hr = HTML::Restrict->new(
filter_text => 0, 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> </code></pre>
<p>You can use an actual tab character or four spaces to indent. <p>You can use an actual tab character or four spaces to indent.
<strong>Only Markdown is supported, HTML will be filtered Only Markdown as well as the HTML tags <code>&lt;br&gt;</code> and
out.</strong></p> <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 <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 moderator. If you need further assistance you can reach out to the
<a href="mailto:swaggboi@slackware.uk">webmaster</a>. There is <a href="mailto:swaggboi@slackware.uk">webmaster</a>. There is