Subject: | Feature request: Callback function for headings |
The constructor already allows to pass a code ref with perldoc_fragment_format (for example).
I'd like to pass a code ref that is executed whenever a =head1, =head2 etc is found to control what's generated.
I want to something like this:
=head1 The Chapter
Text text ..
=head2 The Section
...
This should produce:
# The Chapter {#The_Chapter}
Text text ..
## The Section {#The_Chapter/The_Section}
...
I actually do this by post-filtering, but having a callback inside Pod::Markdown would be more convenient.