feat: use standard render method for rendering slides

This commit is contained in:
Tim Grelka
2025-06-24 22:09:49 +02:00
parent c13ae4c9a2
commit ac90cd6002
4 changed files with 11 additions and 8 deletions
+3 -1
View File
@@ -193,8 +193,10 @@ class Build:
result += help_template.render()
result += "</section>\n"
for section in sections:
if not section["slide"].startswith("---"):
section["slide"] = "---\n" + section["slide"]
tmp = f'<section data-background="#DAEEFA">\n<h1>{section["title"]}</h1>\n</section>\n'
tmp += renderer.render_wrapper(section["slide"])
tmp += renderer.render(Document(section["slide"]))
result += f"<section>{tmp}</section>\n"
result += next_template.render(
edition=edition,