jgm / djot.js

JavaScript implementation of djot
MIT License
151 stars 16 forks source link

Attributes on paragraphs do not get carried over to pandoc AST #99

Open calebeby opened 1 week ago

calebeby commented 1 week ago

If I use pandoc directly:

{.class-name}
hello

results in a wrapper div with the class attached, and the paragraph inside the div.

If I use djot.js djot.toPandoc(djot.parse(...)), only a paragraph is returned, without the attribute.

jgm commented 1 week ago

I'm open to changes to the pandoc module that add these wrapper divs and spans, as pandoc does.