jgm / pandoc

Universal markup converter
https://pandoc.org
Other
33.72k stars 3.33k forks source link

Textile parser ignore paragraphs with classes #2675

Open kpym opened 8 years ago

kpym commented 8 years ago

The following code

p(bingo). Test

should produce the following HTML

<p class="bingo">Test</p>

but pandoc ignore the class and produce

<p>Test</p>

The same for paragraphs with id like p(#bingo)..

jgm commented 8 years ago

Pandoc's document model doesn't include attributes for paragraphs. Best we could do would be to produce a containing Div surrounding the paragraph, with the attributes on the Div.