From 64d2d2348ab13f0af97112d69123a360214518f5 Mon Sep 17 00:00:00 2001 From: "Dr. Bryan Roessler" <38270216+cryobry@users.noreply.github.com> Date: Fri, 6 Dec 2024 00:00:08 -0500 Subject: [PATCH] Fix underscores in github markdown links Use the actual header name (do not remove underscores) --- shdoc | 1 - 1 file changed, 1 deletion(-) diff --git a/shdoc b/shdoc index 5fbdad3..013da72 100755 --- a/shdoc +++ b/shdoc @@ -178,7 +178,6 @@ function render_toc_link(text) { # @see https://github.com/jch/html-pipeline/blob/master/lib/html/pipeline/toc_filter.rb#L44-L45 url = tolower(url) gsub(/[^[:alnum:] _-]/, "", url) - gsub(/_/, "", url) gsub(/ /, "-", url) }