contrib/html: drop ampersand, comma, dash, exclamation mark, ...

... parentesis & tick mark from id/anchor
This commit is contained in:
Christian Hesse 2025-11-07 22:57:17 +01:00
parent 2e0787afd1
commit 719b662b76

View file

@ -12,6 +12,7 @@ sed \
markdown -f toc,idanchor "${1}" | sed \
-e 's/href="\([-_\./[:alnum:]]*\)\.md\(#[-[:alnum:]]*\)\?"/href="\1.html\2"/g' \
-e '/<h[1234] /s| id="\(.*\)">| id="\L\1">|'
-e '/<h[1234] /s| id="\(.*\)">| id="\L\1">|' \
-e '/<h[1234] /s|-2[1789cd]-||g' -e '/<h[1234] /s|--26-amp-3b-||g'
printf '</body></html>'