From 57ad1a02f119e81d44141c7f4960574132f392c4 Mon Sep 17 00:00:00 2001 From: Botond Hende Date: Sun, 22 Sep 2024 14:29:14 +0200 Subject: fake html tag --- quote.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'quote.py') diff --git a/quote.py b/quote.py index 56ae0bc..0ec02dc 100644 --- a/quote.py +++ b/quote.py @@ -16,7 +16,7 @@ class QuoteElement(inline.InlineElement): parse_children = True def __init__(self, match): - self.quote = match.group(1) + self.children = match.group(1) self.source = match.group(2) if match.group(2) is not None and not match.group(2).isspace() else None @@ -24,7 +24,7 @@ class QuoteElement(inline.InlineElement): class QuoteRenderer: def render_quote_element(self, element: QuoteElement): source = f'

-- {element.source}

' if element.source is not None else '' - return f'

"

{element.quote}

"

{source}
' + return f'

"

{self.render_children(element)}

"

{source}
' Quote = MarkoExtension( -- cgit v1.2.3-70-g09d2