Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LaTeX to HTML and -R #887

Closed
pkra opened this issue Jun 24, 2013 · 2 comments
Closed

LaTeX to HTML and -R #887

pkra opened this issue Jun 24, 2013 · 2 comments

Comments

@pkra
Copy link

pkra commented Jun 24, 2013

Would it be possible to have LaTeX to HTML conversion have some kind of -R option, i.e., some way to generically convert LaTeX that pandoc didn't convert? The current behavior to simply drop content is a bit harsh.

One way would be as comments or some other invisible form. Another would be to do something as suggested in #165 and generate spans and divs.

@jgm
Copy link
Owner

jgm commented Jun 24, 2013

You can write a script using the pandoc API that looks for
RawBlock "latex" or RawInline "latex" elements and converts
them to whatever HTML form you desire. See "Scripting with
pandoc" on the website.

+++ pkra [Jun 24 13 16:21 ]:

Would it be possible to have LaTeX to HTML conversion have some kind of
-R option, i.e., some way to generically convert LaTeX that pandoc
didn't convert? The current behavior to simply drop content is a bit
harsh.

One way would be as comments or some other invisible form. Another
would be to do something as suggested in [1]#165 and generate spans and
divs.


Reply to this email directly or [2]view it on GitHub.
[xJAuenYDiIoVt3LF3y684-eCtd72xE1rFOS_U4ckclZAbSgn2UgMcQRNRMWw-wJk.gif]

References

  1. Doing something of LaTeX commands when generating HTML #165
  2. LaTeX to HTML and -R #887

@pkra
Copy link
Author

pkra commented Jun 24, 2013

That's a good point. I was wondering more about the default behavior. But perhaps that's a discussion more suited for the user group.

@jgm jgm closed this as completed Jun 28, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants