mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-06-03 17:22:40 +00:00
contrib/html: support any class name from image alt text
This commit is contained in:
parent
ac2230f53d
commit
0e5c07e344
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ markdown -f toc,idanchor "${1}" | sed \
|
||||||
-e '/<h[1234] /s|-2[1789cd]-||g' \
|
-e '/<h[1234] /s|-2[1789cd]-||g' \
|
||||||
-e '/<h[1234] /s|-3[f]-||g' \
|
-e '/<h[1234] /s|-3[f]-||g' \
|
||||||
-e '/^<pre>/s|pre|pre class="code" onclick="CopyToClipboard(this)"|g' \
|
-e '/^<pre>/s|pre|pre class="code" onclick="CopyToClipboard(this)"|g' \
|
||||||
-e '/<img src=".*" alt="\(notification\|screenshot\): .*" \/>/s|alt="\(.*\):|class="\1" alt="\1:|' \
|
-e '/<img src=".*" alt="[a-z]\+: .*" \/>/s|alt="\([a-z]\+\):|class="\1" alt="\1:|' \
|
||||||
-e '/The above link may be broken on code hosting sites/s|blockquote|blockquote style="display: none;"|'
|
-e '/The above link may be broken on code hosting sites/s|blockquote|blockquote style="display: none;"|'
|
||||||
|
|
||||||
sed \
|
sed \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue