Closed preaction closed 8 years ago
On the other hand, this content gets highlighted effectively:
<ul class="tags">
% for my $tag ( $page->tags ) {
<li>
<a href="<%= $tag->href %>">
<%= $tag->text %>
</a>
</li>
% }
</ul>
Perhaps something to do with opening a tag first?
Oh ffs. It's because I didn't %=
at the front...
For some reason, the following content, passed through the highlighter, yields an empty string.
My guess is the unmatched, unescaped
>
. To mitigate this for HTML purposes, we could add some HTML escaping first, when the highlight routine ishtml
.We also need to detect errors in the highlighter. They should be printed as warnings when building the site. The content should be passed-through without highlighting so it doesn't seem missing.