. "$_EXEC"/session_lock.sh
git init "$_DATA" >/dev/null &
+
export MD_HTML="false"
+markdown() {
+ local awkbin=`which awk`
+ if [ "$awkbin" ]; then
+ "$awkbin" -f "$_EXEC"/cgilite/markdown.awk
+ else
+ busybox awk -f "$_EXEC"/cgilite/markdown.awk
+ fi
+}
yield_page(){
title="${1:-WebTXT}" page="$2"
[input type=hidden name=session_key value="$SESSION_KEY"]
[button type=submit name=action value=edit Edit]
]
- [div .text . $("$_EXEC"/cgilite/markdown.awk <"$doc")]
+ [div .text . $(markdown <"$doc")]
EOF