mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-12-06 09:59:28 +00:00
contrib/html: add empty lines...
... for easier rebasing.
This commit is contained in:
parent
cbb282746f
commit
97b4a41f23
1 changed files with 2 additions and 0 deletions
|
|
@ -3,7 +3,9 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
sed "s|__TITLE__|$(head -n1 "${1}")|" < "${0}.d/head.html"
|
sed "s|__TITLE__|$(head -n1 "${1}")|" < "${0}.d/head.html"
|
||||||
|
|
||||||
markdown -f toc,idanchor "${1}" | sed \
|
markdown -f toc,idanchor "${1}" | sed \
|
||||||
-e 's/href="\([-_\./[:alnum:]]*\)\.md"/href="\1.html"/g' \
|
-e 's/href="\([-_\./[:alnum:]]*\)\.md"/href="\1.html"/g' \
|
||||||
-e '/<h[1234] /s| id="\(.*\)">| id="\L\1">|'
|
-e '/<h[1234] /s| id="\(.*\)">| id="\L\1">|'
|
||||||
|
|
||||||
printf '</body></html>'
|
printf '</body></html>'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue