Repair multiline inline elements

This commit is contained in:
Knoch 2023-04-26 09:25:47 +02:00
parent 814d661810
commit 67388f2a7e

View File

@ -26,9 +26,10 @@ def compile_slide(slide, root_directory):
# very unelegant attempt at inline elements
inline_key = '@' + key + '(inline)'
if inline_key in slide:
filler_without_outer_paragraph = re.sub(r"<p>(.+)</p>", r"\1", filler, flags=re.DOTALL)
slide = slide.replace(
inline_key,
re.sub(r"<p>(.+)</p>", r"\1", filler)
filler_without_outer_paragraph
)
elif '@' + key in slide: