From 0828addca51f96f088ac11d786eee6b5a76a0d7f Mon Sep 17 00:00:00 2001 From: Wynn Wolf Arbor Date: Fri, 10 Apr 2020 19:08:00 +0200 Subject: util: Have lowdown not skip or escape HTML by default This commit adds two new flags to the lowdown(1) call in mdconv.sh that control the inclusion and parsing of inline HTML in markedown files: 1) --html-no-skiphtml, which stops lowdown(1) from skipping inline HTML 2) --html-no-escapehtml, which stops lowdown(1) from escaping said HTML For now, this is done unconditionally. We plan to add a tag to the markdown files controlling this behaviour in a future commit. --- util/mdconv.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'util') diff --git a/util/mdconv.sh b/util/mdconv.sh index a3b6831..4385f51 100644 --- a/util/mdconv.sh +++ b/util/mdconv.sh @@ -4,6 +4,8 @@ title="$(lowdown -X title "$1")" date="$(lowdown -X date "$1")" author="$(lowdown -X author "$1")" +flags="--html-no-skiphtml --html-no-escapehtml" + cat<
@@ -13,6 +15,6 @@ cat< - $(lowdown "$1") + $(lowdown $flags "$1")
EOF -- cgit v1.2.3-2-gb3c3