From 8ecf71c0a4c012b8a74e1f1fb24780d05029ac70 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Sun, 15 Jun 2025 23:30:03 -0500 Subject: [PATCH] Fix the anchors in links to other markdown files Need to lower-case the anchors in links to other EPICS markdown docs. --- src/tools/EPICS/PodMD.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tools/EPICS/PodMD.pm b/src/tools/EPICS/PodMD.pm index e2017854b..fb6a47ec3 100644 --- a/src/tools/EPICS/PodMD.pm +++ b/src/tools/EPICS/PodMD.pm @@ -8,7 +8,7 @@ use warnings; use base 'Pod::Markdown'; # Translate L -# into link text# +# into link text# # 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;