mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-12-06 01:49:28 +00:00
contrib/html: properly handle anchors
This commit is contained in:
parent
a0399216fc
commit
2e0787afd1
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ sed \
|
|||
< "${0}.d/head.html"
|
||||
|
||||
markdown -f toc,idanchor "${1}" | sed \
|
||||
-e 's/href="\([-_\./[:alnum:]]*\)\.md"/href="\1.html"/g' \
|
||||
-e 's/href="\([-_\./[:alnum:]]*\)\.md\(#[-[:alnum:]]*\)\?"/href="\1.html\2"/g' \
|
||||
-e '/<h[1234] /s| id="\(.*\)">| id="\L\1">|'
|
||||
|
||||
printf '</body></html>'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue