We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db0b414 commit f8db64bCopy full SHA for f8db64b
lib/Pod/To/HTML.pm
@@ -214,7 +214,7 @@ sub do-toc($pod) returns Str {
214
my proto sub find-headings($node, :$inside-heading){*}
215
multi sub find-headings(Str $s is raw, :$inside-heading){ $inside-heading ?? $s.trim !! '' }
216
multi sub find-headings(Pod::FormattingCode $node is raw where *.type eq 'C', :$inside-heading){
217
- my $html = $node.contents.map(*.&find-headings(:$inside-heading));
+ my $html = $node.contents.map(*.&find-headings(:$inside-heading)).Str.&escape_html;
218
$inside-heading ?? qq[<code class="pod-code-inline">{$html}</code>] !! ''
219
}
220
multi sub find-headings(Pod::Heading $node is raw, :$inside-heading){
0 commit comments