From: Paul Hänsch Date: Mon, 23 Sep 2024 04:40:52 +0000 (+0200) Subject: skip parser stack for page_title() function, use fixed md parser instead X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=364cea0f4391ea31f5255379f2d119c405075e80;p=shellwiki skip parser stack for page_title() function, use fixed md parser instead --- diff --git a/tools.sh b/tools.sh index b19a83d..6923b6a 100755 --- a/tools.sh +++ b/tools.sh @@ -231,7 +231,7 @@ page_title() { )" [ ! "${PAGE_TITLE}" ] && PAGE_TITLE="$( # pick title from first h1/h2 headline - MD_MACROS="" md <"$mdfile" \ + awk -f "${_EXEC}/cgilite/markdown.awk" <"$mdfile" \ | sed -nE ' s;^.*]*>(.*>)?([^<]+)(<.*)?.*$;\2;; tQ; s;^.*]*>(.*>)?([^<]+)(<.*)?.*$;\2;; tQ;