summaryrefslogtreecommitdiffstats
path: root/gen.sh
diff options
context:
space:
mode:
authorTyler Davis <tyler@gluecode.net>2025-02-20 22:51:23 +0000
committerTyler Davis <tyler@gluecode.net>2025-02-20 22:51:23 +0000
commitb566bf5c835e04e745dabb6bd1232ac8a09873ef (patch)
treeea806db591bbe03897a1de6b4c6701d9b13b4c92 /gen.sh
parent2f182b05325c159e618ad1675c007566e9d1694e (diff)
downloadjournal-b566bf5c835e04e745dabb6bd1232ac8a09873ef.tar.gz
journal-b566bf5c835e04e745dabb6bd1232ac8a09873ef.zip
Switch to lowdown for html generation
Diffstat (limited to 'gen.sh')
-rwxr-xr-xgen.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/gen.sh b/gen.sh
index c0d2f12..44f0bdf 100755
--- a/gen.sh
+++ b/gen.sh
@@ -7,6 +7,9 @@ verbose=0 # Variables to be evaluated as shell arithmetic should be initialized
if [ ! "$(command -v cmark)" ]; then
echo "cmark not installed in $PATH"
fi
+if [ ! "$(command -v lowdown)" ]; then
+ echo "lowdown not installed in $PATH"
+fi
usage="$(basename "$0") [-h] [-v -w WORKDIR -f FILE]
@@ -109,7 +112,8 @@ for m in $MDLIST; do
esac
echo $HEADER > "${OUTPATH}"
- cmark --safe --validate-utf8 -t html --width 80 $m >> "${OUTPATH}"
+ #cmark --safe --validate-utf8 -t html --width 80 $m >> "${OUTPATH}"
+ lowdown -thtml --out-no-smarty $m >> "${OUTPATH}"
echo $FOOTER >> "${OUTPATH}"
if [ $verbose -gt 0 ]; then