miyuchina / mistletoe

A fast, extensible and spec-compliant Markdown parser in pure Python.
MIT License
831 stars 119 forks source link

Change html output for a paragraph #95

Closed eimfach closed 3 years ago

eimfach commented 4 years ago

Hey there,

Is it possible to change the output for a paragraph from a p tag to blockquote tag ?

For example, I have this markdown line:

Lorem ipsum solor dit amed

Mistletoe wraps this in a p tag, but I want a blockquote.

is this possible ? Also, how could I add css classes to the blockquote ?

Thanks !

anderskaplan commented 3 years ago

Hi @eimfach, the way to represent a blockquote in Markdown is with the greater-than sign, like this: >Lorem ipsum solor dit amed

which will be rendered as:

Lorem ipsum solor dit amed

Adding css classes is not supported in Markdown as far as I know.

pbodnar commented 3 years ago

It looks like the question was answered. Thank you. :)