Fix the anchors in links to other markdown files

Need to lower-case the anchors in links to other EPICS markdown docs.
This commit is contained in:
Andrew Johnson
2025-06-15 23:30:03 -05:00
parent 5aff8cee30
commit 8ecf71c0a4

View File

@@ -8,7 +8,7 @@ use warnings;
use base 'Pod::Markdown';
# Translate L<link text|filename/Section name>
# into <a href="filename.md#Section-name">link text</a>#
# into <a href="filename.md#section-name">link text</a>#
# This is for Sphinx processing on Readthedocs. Sphinx converts
# links to .md into .html automatically in the processing.
@@ -50,6 +50,8 @@ sub format_perldoc_url {
# Set topic to enable code refs to be simple.
local $_ = $section;
$section = $self->$method($section);
$section = lc($section) if $url;
}
$url .= '#' . $section;