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

Fix markdown mathjax in html #2043

Merged
merged 4 commits into from
May 12, 2022

Conversation

nickmelnikov82
Copy link
Member

As described in issue #2003, dangerously_allow_html=True + mathjax=True works in some cases, and in some cases not.
The problem is that the markdown-parse recognizes whole string as the html object and stops further parsing. This PR fixes the processing of the mathjax in html.

Contributor Checklist

  • I have broken down my PR scope into the following TODO tasks
    • fix issue
    • add test
  • I have run the tests locally and they passed. (refer to testing section in contributing)
  • I have added tests, or extended existing tests, to cover any new features or bugs fixed in this PR

optionals

  • I have added entry in the CHANGELOG.md
  • If this PR needs a follow-up in dash docs, community thread, I have mentioned the relevant URLS as follows
    • this GitHub #PR number updates the dash docs
    • here is the show and tell thread in Plotly Dash community

@alexcjohnson
Copy link
Collaborator

@nickmelnikov82 this looks great! Can you include the other two failing cases from #2003 in the tests, and add a changelog entry? The test failure looks spurious so with any luck it'll simply pass on the next try.

@nickmelnikov82 nickmelnikov82 force-pushed the fix-markdown-mathjax-in-html branch from 4c5c15a to c58a28d Compare May 12, 2022 08:53
@nickmelnikov82 nickmelnikov82 force-pushed the fix-markdown-mathjax-in-html branch from c58a28d to 93a392a Compare May 12, 2022 12:05
Copy link
Collaborator

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work! 💃

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

Successfully merging this pull request may close these issues.

2 participants