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 pane does not render latex without adding "mathjax" to pn.extension #3429

Closed
MarcSkovMadsen opened this issue Apr 18, 2022 · 0 comments · Fixed by #3438
Closed

Markdown pane does not render latex without adding "mathjax" to pn.extension #3429

MarcSkovMadsen opened this issue Apr 18, 2022 · 0 comments · Fixed by #3438
Labels
type: bug Something isn't correct or isn't working

Comments

@MarcSkovMadsen
Copy link
Collaborator

I'm on Panel 0.13 trying out the new functionality. I cannot get it working.

import panel as pn

pn.extension(sizing_mode="stretch_width")

pn.pane.Markdown("""
- Markdown panes now support $$LaTeX$$
- To render a snippet with LaTeX add two $ delimiters
- e.g. $$\sum_{j}{\sum_{i}{a*w_{j, i}}}$$
""", width=800).servable()

looks like

image

Additional Context

If I add mathjax to pn.extension, I can get it working. But its not documented in the blog post https://blog.holoviz.org/panel_0.13.0.html or in the reference notebook https://panel.holoviz.org/reference/panes/Markdown.html

import panel as pn

pn.extension("mathjax", sizing_mode="stretch_width")

pn.pane.Markdown("""
## Markdown $$LaTeX$$ support

The Markdown pane supports math rendering for string encapsulated with double $ delimiters: $$\sum_{j}{\sum_{i}{a*w_{j, i}}}$$
""", width=800).servable()

image

@MarcSkovMadsen MarcSkovMadsen added type: bug Something isn't correct or isn't working TRIAGE Default label for untriaged issues labels Apr 18, 2022
@MarcSkovMadsen MarcSkovMadsen added this to the Version 0.13.1 milestone Apr 18, 2022
@MarcSkovMadsen MarcSkovMadsen removed the TRIAGE Default label for untriaged issues label Apr 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't correct or isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant