mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-12-07 18:39:29 +00:00
contrib/html: drop ampersand, comma, dash & tick from id/anchor
This commit is contained in:
parent
f41ed5b1f5
commit
93a17d8df4
1 changed files with 2 additions and 1 deletions
|
|
@ -12,6 +12,7 @@ sed \
|
||||||
|
|
||||||
markdown -f toc,idanchor "${1}" | sed \
|
markdown -f toc,idanchor "${1}" | sed \
|
||||||
-e 's/href="\([-_\./[:alnum:]]*\)\.md\(#[-[:alnum:]]*\)\?"/href="\1.html\2"/g' \
|
-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[7cd]-||g' -e '/<h[1234] /s|--26-amp-3b-||g'
|
||||||
|
|
||||||
printf '</body></html>'
|
printf '</body></html>'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue