From 3f7e90fd461faa52fe86fa79f9f0bf7d95f4db24 Mon Sep 17 00:00:00 2001 From: Govindas Date: Mon, 24 Jan 2022 16:23:07 +0200 Subject: [PATCH] Experimental Markdown inside HTML support --- generate.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/generate.py b/generate.py index 344fd4d..189d526 100644 --- a/generate.py +++ b/generate.py @@ -36,7 +36,9 @@ def parseRawHTML(doc, line, htmlstring, rawhtml, id, maxlines): #parse indented raw html elif rawhtml: if line.startswith(" "): - htmlstring = htmlstring + line.strip() + + #experimental markdown inside HTML support + htmlstring = htmlstring + html.unescape(markdown.markdown(html.escape(line.strip()))) #if indented html was the last line, this is needed for it to not be ignored #since this is the end of the file, we will not set rawhtml to False.