erusev / parsedown

Better Markdown Parser in PHP
https://parsedown.org
MIT License
14.74k stars 1.12k forks source link

Feature request: Converting quotation marks to a <q> element #684

Open anasram opened 5 years ago

anasram commented 5 years ago

Just like when markdown language converts `foo` to <code>foo</code>, I propose to convert "foo" to <q>foo</q>.

weeklyd3 commented 2 years ago

I think there should be a setting.

The HTML spec says:

Content inside a q element must be quoted from another source, whose address, if it has one, may be cited in the cite attribute. The source may be fictional, as when quoting characters in a novel or screenplay. The text This is a "post"?

isn't a quote, so the q tag is not appropriate for this use.

There should be something like

$this->setQuotes2Q(true);