From: Paul Hänsch Date: Wed, 7 Jul 2021 12:35:17 +0000 (+0200) Subject: switch to cgilite markdown X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=e2689fa579a2ad5067f30a225f43d7ac056b8bac;p=webtxt switch to cgilite markdown --- diff --git a/index.cgi b/index.cgi index 2797910..c0b2ae4 100755 --- a/index.cgi +++ b/index.cgi @@ -9,6 +9,7 @@ _DATA="${_DATA:-.}" . "$_EXEC"/session_lock.sh git init "$_DATA" >/dev/null & +export MD_HTML="false" yield_page(){ title="${1:-WebTXT}" page="$2" @@ -118,5 +119,5 @@ yield_page "$(pagename "$doc" |HTML)" <<-EOF [input type=hidden name=session_key value="$SESSION_KEY"] [button type=submit name=action value=edit Edit] ] - [div .text . $(markdown <"$doc")] + [div .text . $("$_EXEC"/cgilite/markdown.awk <"$doc")] EOF