Do not make titles visible in Markdown pages

This commit is contained in:
Sam Trenholme 2022-12-19 12:27:37 -08:00
parent 2ba7517afe
commit 5e0b1c8ba5
4 changed files with 0 additions and 8 deletions

View file

@ -1344,8 +1344,6 @@ and man page.
# coLunacyDNS man page
==== coLunacyDNS ====
# NAME
coLunacyDNS - A DNS server configured by Lua

View file

@ -1,5 +1,3 @@
==== coLunacyDNS ====
# NAME
coLunacyDNS - A DNS server configured by Lua

View file

@ -1344,8 +1344,6 @@ and man page.
# coLunacyDNS man page
==== coLunacyDNS ====
# NAME
coLunacyDNS - A DNS server configured by Lua

View file

@ -249,8 +249,6 @@ out = out:gsub(mc("<nofmt>"),"")
out = out:gsub(mc("<th%s*>[^<]*</th%s*>"),"") -- EJ for man pages unused here
out = out:gsub(mc("<dtwidth%s*>[^<]*</dtwidth%s*>"),"") -- DTWIDTH part of man
out = out:gsub(mc("</?meta[^>]*>"),"") -- Scrub META tag
out = out:gsub(mc("<head>.-<title>(.-)</title>.-</head>%s*"),
"==== %1 ====\n\n") -- Handle titles; otherwise scrub HEAD
out = out:gsub(mc("<head>.-</head>%s*"),"") -- Scrub HEAD w/o title
out = out:gsub(mc("<body>%s*"),"") -- Scrub BODY tag
out = out:gsub(mc("<a[^>]->%s*"),"") -- Scrub A tag