From 364cea0f4391ea31f5255379f2d119c405075e80 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Mon, 23 Sep 2024 06:40:52 +0200 Subject: [PATCH] skip parser stack for page_title() function, use fixed md parser instead --- tools.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2