Skip to content

Commit 8d497c2

Browse files
authored
Html block contains raw HTML code
*Everything* within a Html block is assuming raw HTML. Because of the implementation, pod6 syntax will be removed, only its raw text remind. That is, C<code> -> code. To write C<> within Html block, you can use C&amp;lt;&amp;&gt; To mix up pod6 and HTML, you can separate them into different blocks. See the example below: ``` =begin Html 111 =end Html =begin code =begin code =end code =end code =begin Html 222 =end Html ```
1 parent adc5351 commit 8d497c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Pod/To/HTML.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ multi sub node2html(Pod::Block::Named $node) {
376376
}
377377
378378
sub node2rawhtml(Positional $node) {
379-
return $node.map({ $_.contents }).join
379+
return $node.map({ node2rawtext $_}).join: "\n"
380380
}
381381
382382
multi sub node2html(Pod::Block::Para $node) {

0 commit comments

Comments
 (0)