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

'\' before special characters in math mode go missing #8

Closed
jlbosse opened this issue Nov 8, 2020 · 2 comments
Closed

'\' before special characters in math mode go missing #8

jlbosse opened this issue Nov 8, 2020 · 2 comments

Comments

@jlbosse
Copy link

jlbosse commented Nov 8, 2020

Somehow the conversion misses backslashes \ that are in front of other special characters, like e.g. \ or { when in math mode. This means that things
like new lines \\ or \left\{ don't work in math mode.

Expected behaviour

A lot of text

$$
\begin{aligned}
H &= A \\
   &= \left\{B \right\}
\end{aligned}
$$

more text

gets converted to

<p>A lot of text </p>
<p>$$
\begin{aligned}
H &= A \\
   &= \left\{B \right\}
\end{aligned}
$$</p>
<p>more text </p>

Actual behaviour

It gets converted to

<p>A lot of text </p>
<p>$$
\begin{aligned}
H &= A \
   &= \left{B \right}
\end{aligned}
$$</p>

<p>more text </p>
jlbosse pushed a commit to jlbosse/vimwiki_markdown that referenced this issue Dec 20, 2020
Changes to be committed:
	modified:   setup.py
	modified:   vimwiki_markdown.py
@jakobkogler
Copy link

jakobkogler commented Feb 25, 2021

Already mentioned it in #14
You can fix it by installing the markdown_math_escape plugin with pip (pip install markdown_math_escape), and enable it by setting the environment variable for the additional markdown extensions: export VIMWIKI_MARKDOWN_EXTENSIONS=markdown_math_escape

@WnP
Copy link
Owner

WnP commented Mar 25, 2021

I'm closing this issue, see #14 and @jakobkogler comment.

@WnP WnP closed this as completed Mar 25, 2021
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

3 participants