class mdfy.elements.quote.MdQuote(content: str | MdElement)[source]

Bases: MdElement

Represents a Markdown blockquote.

content

The content of the quote.

Type:

str or MdElement

Examples

>>> from mdfy.elements import MdQuote
>>>
>>> quote = MdQuote("This is a quote.")
>>> print(quote)
> This is a quote.
>>>
>>> quote = MdQuote("This is a quote.\nThis is another line.")
>>> print(quote)
> This is a quote.
> This is another line.
__str__() str[source]

Returns a string representation of the blockquote in Markdown format.

Returns:

String representation of the blockquote.

Return type:

str