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

Math plugin: Better context handling for defined macro #212

Merged
merged 3 commits into from
Feb 6, 2021

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented Feb 6, 2021

Updated Marp Core Math plugin to make better context handling of math rendering. Fix problems about defined macro.

  • KaTeX: Persist defined global macro between math renderings.

\gdef, \xdef, \global\def, \global\edef, \global\let, and \global\futurelet will persist between math expressions.

-- https://katex.org/docs/supported.html#macros

  • MathJax: Prevent leaking defined macro between Markdown renderings.

Resolve marp-team/marp#71.

@yhatt yhatt merged commit a7658e2 into main Feb 6, 2021
@yhatt yhatt deleted the math-context-handling branch February 6, 2021 15:26
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.

1 participant