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

lib/markdown2: introduce LaTeX/Maths mode #2721

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Morriar
Copy link
Member

@Morriar Morriar commented Jun 20, 2018

This PR is a follow up of #2720 and introduces a LaTeX/Maths mode for lib/markdown2.
The goal is to handle #791 when it will be merged with the documentation tools.

The maths mode, when enabled, uses the tex2im tool to render LaTeX equations as images and includes them into the HTML output.

So one can write:

This is a LaTeX equation: $\\psi_{tot}(x,-t_0,r) = \\frac{1}{(2\\pi)^2}$.

And the output will be:

<p>This is a LaTeX equation: <img alt="\\psi_{tot}(x,-t_0,r) = \\frac{1}{(2\\pi)^2}" src="b123b75db5eb96ac4496d017a18633b5.png" /> baz</p>

Where the image will be: b123b75db5eb96ac4496d017a18633b5

To work this PR requires tex2im to be installed and added to the path.

Signed-off-by: Alexandre Terrasa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant