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

markdown cell broken by simple latex: \[ #3393

Closed
RafalSkolasinski opened this issue Mar 4, 2018 · 4 comments
Closed

markdown cell broken by simple latex: \[ #3393

RafalSkolasinski opened this issue Mar 4, 2018 · 4 comments

Comments

@RafalSkolasinski
Copy link

Markdown cell gets broken (not possible to write, view) if following content is included:

```latex
\[
@ax3l
Copy link

ax3l commented Mar 9, 2018

following this post on twitter, $ seems to be problematic as well

@smartsammler
Copy link

@RafalSkolasinski In some issues I read that pandoc is used for converting markdown to LaTeX and pandoc needs to be given the extension
+tex_math_single_backslash to the markdown-extension to interpret the \[- and \(-syntax and not just the old $$- and $-syntax.
So unless Jupyter converts with

pandoc -f markdown+tex_math_single_backslash -t latex $filename

only the $-syntax will be supported I guess.

I also would like to use this syntax in markdown-cells

@takluyver
Copy link
Member

Pandoc is not involved here; that's used by nbconvert when we convert a whole notebook to a tex file. When you're editing a notebook in the browser, CodeMirror is the JS text editor component, and marked is responsible for rendering markdown, with Mathjax handling a subset of latex syntax.

Opening the browser's JS console shows me an error state.localMode.indent is not a function, which looks like jupyterlab/jupyterlab#2923 and codemirror/codemirror5#4947 . That has already been fixed in CodeMirror, and PR #3372 updated the version we use.

I've just rebuilt the JS and tested, and it seems to be working for me now, so this should be fixed when we release notebook 5.5. Does anyone else want to install from source (instructions) to double check that?

@takluyver takluyver added this to the 5.5 milestone Mar 13, 2018
@takluyver
Copy link
Member

Closing this on the assumption that it's fixed for 5.5 (not yet released).

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants