feature: first slide rendering and acceptance test based on html renderer

This commit is contained in:
Prof. Dr. Matthias Jung DL9MJ
2025-06-24 22:04:42 +02:00
committed by Tim Grelka
parent 54ecfb99b8
commit 44189e8816
10 changed files with 444 additions and 7 deletions
+9 -3
View File
@@ -1,5 +1,7 @@
from itertools import chain
from jinja2 import Environment, FileSystemLoader
from mistletoe import Document, HtmlRenderer
@@ -28,8 +30,9 @@ class FiftyOhmHtmlRenderer(HtmlRenderer):
section_url = "section.html"
ref_id = 0
def __init__(self, question_renderer=None, picture_handler=None, photo_handler=None):
super().__init__(
def __init__(self, *extras, question_renderer=None, picture_handler=None, photo_handler=None):
final_extras = chain(extras,(
Dash,
BlockComment,
Quote,
@@ -46,7 +49,10 @@ class FiftyOhmHtmlRenderer(HtmlRenderer):
Photo,
Table,
Qso,
)
))
super().__init__(*final_extras)
self.question_renderer = question_renderer
self.picture_handler = picture_handler
self.photo_handler = photo_handler