summaryrefslogtreecommitdiff
path: root/quote.py
diff options
context:
space:
mode:
authorBotond Hende <nettingman@gmail.com>2024-09-22 14:29:14 +0200
committerBotond Hende <nettingman@gmail.com>2024-09-22 14:29:14 +0200
commit57ad1a02f119e81d44141c7f4960574132f392c4 (patch)
treeddad7ab62637aa2d1ba58d07487e1be0dd49058f /quote.py
parent97ae1c4058c09731033847226942342fdee30be8 (diff)
fake html tag
Diffstat (limited to 'quote.py')
-rw-r--r--quote.py4
1 files changed, 2 insertions, 2 deletions
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'<p class="quote-source">-- {element.source}</p>' if element.source is not None else ''
- return f'<div class="quote"><div class="quote-main"><p>"</p><p>{element.quote}</p><p>"</p></div>{source}</div>'
+ return f'<div class="quote"><div class="quote-main"><p>"</p><p>{self.render_children(element)}</p><p>"</p></div>{source}</div>'
Quote = MarkoExtension(