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.