Very unelegant attempt at inline elements.

This commit is contained in:
Kremitzl 2019-12-17 18:19:54 +01:00
parent 67b8c2301a
commit adbf01a012
2 changed files with 3 additions and 1 deletions

View File

@ -68,6 +68,8 @@ def compile_slide(slide):
print('replace', placeholder, 'with', filler)
if '@' + key in slide:
slide = slide.replace(placeholder, filler)
# very unelegant attempt at inline elements
slide = re.sub(r"<p>(.+?)</p>\n\(inline\)", r"\1", slide)
return slide
# Parses the metadata passage of a given slide and returns the metadata as a

View File

@ -1,2 +1,2 @@
<h1>@title</h1>
<h1>@title(inline)</h1>
@content