scripts

My personal collection of scripts
git clone git://src.gearsix.net/scripts
Log | Files | Refs | Atom | README | LICENSE

commit 9893ec38fe5767063be9478c008e0a5d56096869
parent 398f10d308d1d2155a15c7e23ea1b1974580fcdf
Author: gearsix <gearsix@tuta.io>
Date:   Wed, 18 Aug 2021 18:21:33 +0100

regex fix to preview-md

Diffstat:
Msrc/preview-md.sh | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/preview-md.sh b/src/preview-md.sh @@ -16,7 +16,7 @@ if [ "$1" == "-h" ] || [ "$1" == "--help" ]; then fi mdconv="cmark" -out=$(echo "$1" | sed "s/md/html/") +out=$(echo "$1" | sed "s/\.\?\(md\|txt\|$\)/\.html/") if [ -e "$out" ]; then rm -i $out; fi $mdconv "$1" > "$out"