forked from tadzik/Pod-To-HTML
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Addresses problems with TOC generation
Not the best way, probably. At the end of the day, TOC and anchors should be generated using the same code, but this module is kind of convoluted, so I'm doing this manually. This should close #41 but also help with Raku/doc#2245
- Loading branch information
Showing
2 changed files
with
42 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
use Test; | ||
use Pod::To::HTML; | ||
plan 2; | ||
|
||
=begin pod | ||
=head2 Rendering Perl 6 with no-break space | ||
Nothing to see here | ||
=head2 What's wrong with this rendering? | ||
Nothing to see here either | ||
=end pod | ||
|
||
my $r = pod2html $=pod; | ||
|
||
ok $r ~~ m/\#What\'s_wrong/; | ||
ok $r ~~ m/\#Rendering_Perl_6/; |