ozanmakes / markup.rocks

Pandoc based document editor and converter in your browser.
http://markup.rocks
MIT License
382 stars 22 forks source link

Equivalent transformations don't obey identity #3

Closed vermiculus closed 9 years ago

vermiculus commented 9 years ago

The minimal LaTeX document

\documentclass{article}
\begin{document}
hello, world
\end{document}

yields

hello, world

under LaTeX–LaTeX.

vermiculus commented 9 years ago

Unless this is really a Pandoc issue, at which point I am simultaneously ashamed and enraged. :smile: If this is just noise, I apologize :)

ozanmakes commented 9 years ago

This is the behavior of Pandoc and I think it's normal that some information to be lost as Pandoc's intermediate representation is not geared towards a complex format like LaTeX. I thought about bypassing Pandoc when source and target are the same but then it wouldn't provide any benefit to the user. At least right now you can use this to get a cleanly formatted document.

vermiculus commented 9 years ago

What about filtering the source format from the list of destination formats? That could bypass the issue altogether and would simplify the UI.

ozanmakes commented 9 years ago

I'm still hoping someone can get a legitimate use out of this :)

vermiculus commented 9 years ago

Oh I see -- I misunderstood/misread your original reply :) I guess that's a fair use-case, even if a little irksome as a mathematician :)

As for the general tool, I do think there's a pretty broad use-case for it. Just look at some of the online compilers for LaTeX -- you'll pry TeX Live from my dead, gnarled emacs fingers, but the online solution has been gaining a lot of inertia. It'll be interesting to see where all this takes us.