Repair multiline inline elements
This commit is contained in:
parent
814d661810
commit
67388f2a7e
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user