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 bug with multiple $ in a line #183

Closed
rain-1 opened this issue Jun 26, 2022 · 3 comments
Closed

latex bug with multiple $ in a line #183

rain-1 opened this issue Jun 26, 2022 · 3 comments

Comments

@rain-1
Copy link

rain-1 commented Jun 26, 2022

I created this bug at the parent repo. But I believe an issue here may be useful too github/markup#1562

@kivikakk
Copy link
Collaborator

CommonMarker doesn't do any rendering of LaTeX, so I think this one's just for GitHub's own pipeline.

@rain-1
Copy link
Author

rain-1 commented Jun 27, 2022

really? There is a function called render latex https://github.com/gjtorikian/commonmarker/search?q=LaTeX

@kivikakk
Copy link
Collaborator

kivikakk commented Jun 28, 2022

Indeed! cmark-gfm, which we wrap, has $\LaTeX$ output:

$ printf '# Hello, world!\n\nLaTeX output from [cmark-gfm](https://github.com/github/cmark-gfm).' | cmark-gfm --to latex
\section{Hello, world!}

LaTeX output from \href{https://github.com/github/cmark-gfm}{cmark-gfm}.
$

We build all of cmark-gfm inside CommonMarker, so those source files you're seeing are just those. We don't (yet) expose the ability to render to LaTeX from CommonMarker, though it would be trivial to do so.

This is all quite different to GitHub's offering, which is a MathJax-based (client-side) render. See Writing mathematical expressions in GitHub's docs for some information.

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