We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80c5ce5 commit f91a111Copy full SHA for f91a111
utils/grass_html2md.sh
@@ -57,8 +57,12 @@ for f in $(find . -name *.html); do
57
s|_KEEPHTML">|">|g;
58
' "${f%%.html}.html" > "${f%%.html}_tmp.html"
59
60
- cat "${f%%.html}_tmp.html" | sed 's#<div class="code"><pre>#<pre><code>#g' | sed 's#</pre></div>#</code></pre>#g' | pandoc \
61
- --from=html --to=markdown -t gfm --lua-filter "${UTILSPATH}/pandoc_codeblock.lua" > "${f%%.html}.md"
+ cat "${f%%.html}_tmp.html" | \
+ sed 's#<div class="code"><pre>#<pre><code>#g' | \
62
+ sed 's#</pre></div>#</code></pre>#g' | \
63
+ pandoc --from=html --to=markdown -t gfm \
64
+ --lua-filter "${UTILSPATH}/pandoc_codeblock.lua" | \
65
+ sed 's+ \\\$+ \$+g' > "${f%%.html}.md"
66
67
rm -f "${f%%.html}_tmp.html"
68
0 commit comments