book
book copied to clipboard
Create a listing link preprocessor to address the in-text linking issue
Following #4271.
It works by handling the pattern Listing\s(\d+-\d+) and replacing it with <a href="#listing-$1" class="listing-link">.
~~However, cross-chapter references aren't handled yet–I'm not quite sure how to approach that part at the moment.~~
And cross-chapter references are handled by a HashMap dictionary.