diff options
author | Tyler Davis <tyler@gluecode.net> | 2025-02-20 22:51:23 +0000 |
---|---|---|
committer | Tyler Davis <tyler@gluecode.net> | 2025-02-20 22:51:23 +0000 |
commit | b566bf5c835e04e745dabb6bd1232ac8a09873ef (patch) | |
tree | ea806db591bbe03897a1de6b4c6701d9b13b4c92 /gen.sh | |
parent | 2f182b05325c159e618ad1675c007566e9d1694e (diff) | |
download | journal-b566bf5c835e04e745dabb6bd1232ac8a09873ef.tar.gz journal-b566bf5c835e04e745dabb6bd1232ac8a09873ef.zip |
Switch to lowdown for html generation
Diffstat (limited to 'gen.sh')
-rwxr-xr-x | gen.sh | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |