diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-10-11 02:03:12 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-10-11 02:03:12 +0200 |
commit | d0014970d32ac8cba7dc98d5bcf2a29b55647b98 (patch) | |
tree | f996197ad01eef7f24e6b3c9f8d17910fb8fb16f | |
parent | Force current filters. (diff) | |
download | cgit-filters-d0014970d32ac8cba7dc98d5bcf2a29b55647b98.tar.gz cgit-filters-d0014970d32ac8cba7dc98d5bcf2a29b55647b98.tar.xz |
Add vimwiki clause.
-rwxr-xr-x | hugo-pre.sh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/hugo-pre.sh b/hugo-pre.sh index cd303ec..dfc4a9a 100755 --- a/hugo-pre.sh +++ b/hugo-pre.sh @@ -2,10 +2,9 @@ name=$1 -extension=${name: -3} - -case $extension in - .md) pandoc -f gfm -t html ;; +case $name in + *.md) pandoc -f gfm -t html ;; + *.wiki) pandoc -f vimwiki -t html --table-of-contents *) cat <<- EOF <pre>$(cat -)</pre> |