""" Encapsulates text in a
html tag with the class "quote" and between two paragraphs which contain a quote ("). These all can be styled in css. Usage (without the backslashes): \"""my quote\""" """ from marko import inline from marko.helpers import MarkoExtension class QuoteElement(inline.InlineElement): pattern = '"""(.+)"""' parse_children = True class QuoteRenderer: def render_quote_element(self, element): return f'

"

{self.render_children(element)}

"

' Quote = MarkoExtension( elements=[QuoteElement], renderer_mixins=[QuoteRenderer] )