Skip to content

Commit

Permalink
Z<> is a comment - do not render it as text.
Browse files Browse the repository at this point in the history
Fixes #5574
  • Loading branch information
coke committed May 21, 2024
1 parent 5a122c6 commit c1cc007
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Pod/To/Text.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ my %formats =
;

sub formatting2text($pod) {
return '' if $pod.type eq 'Z'; # Do not output a comment

my $text = $pod.contents>>.&pod2text.join;
$pod.type ~~ %formats
?? colored($text, %formats{$pod.type})
Expand Down

0 comments on commit c1cc007

Please sign in to comment.