We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce897f9 commit 3a763d1Copy full SHA for 3a763d1
1 file changed
scripts/.local/bin/utils/,markdown-to-html
@@ -23,7 +23,7 @@ pandoc --no-highlight \
23
--template "$DATAFILES_PATH/pandoc-github-template.html" \
24
--output - -f gfm -t html5 \
25
--metadata title="$(basename "$input")" "$input" |
26
- sed -z 's|<pre class="mermaid"><code>\([^<]*\)</code></pre>|<div class="mermaid">\1</div>|g' >"$outfile"
+ perl -0777 -pe 's|<pre class="mermaid"><code>([^<]*)</code></pre>|<div class="mermaid">$1</div>|g' >"$outfile"
27
# we can safely use `<` in sed as pandoc will convert < in code to &le
28
29
[ -z "$NO_OPEN" ] && open "$outfile"
0 commit comments