Skip to content

Conversation

@dahlia
Copy link

@dahlia dahlia commented May 6, 2025

This patch adds support for persisting user-defined macros between renders in markdown-it-texmath.

To persist macros, pass an env object to the .render() method:

const macros = { "\\RR": "\\mathbb{R}" };
texmath.render(input, { macros });

Macros defined during rendering will update the macros object, allowing reuse in subsequent renders.

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