John MacFarlane
John MacFarlane
I'm not necessarily against moving to xml-light, but there are XML files that this library can't handle, and it's also quite a bit slower.
I don't actively maintain this package any more, since I switched to using my pure Haskell commonmark library in pandoc. Have you considered using that?
I've pushed a version with 0.31.1 code that you can test. (And maybe update to the latest -- I wouldn't release anything until cmark itself is released.)
OK, now I understand better than I did in your comment on the other issue. I think this approach will work, yes!
Can you rebase against current master so I can try this out?
Exactly. Comments are just represented as raw HTML, so they don't appear in non-HTML formats. In principle, pandoc could add a native Comment element, but this would be quite an...
You could write a pandoc filter that passes your HTML comments through to latex as latex comments. Something like ``` import Text.Pandoc.JSON main = toJSONFilter commentHtmlToTeX commentHtmlToTeX :: Block ->...
+++ Jonathan Ragan-Kelley [Dec 04 16 17:19 ]: > reading. It's not obvious why they could not also be parsed as raw TeX > strings, starting with %, just as...
The filter matches on a RawBlock and emits a RawBlock, yes.
While we're at it, can we support plain `\textquotes`? Also, I think that the punctuation incorporating feature of `\textcquotes` must be enabled by an option when the package is loaded....