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

KaTeX md with macros #136

Open
kungfooman opened this issue Nov 13, 2021 · 2 comments
Open

KaTeX md with macros #136

kungfooman opened this issue Nov 13, 2021 · 2 comments
Assignees

Comments

@kungfooman
Copy link
Sponsor Contributor

It would be nice to be able to define KaTeX macros for md, maybe with a syntax like:

md(`$
  % \\f is defined as #1f(#2) using the macro
  \\f\\relax{x} = \\int_{-\\infty}^\\infty
    \\f\\hat\\xi\\,e^{2 \\pi i \\xi x}
    \\,d\\xi
$`, {
  macros: {
    "\\f": "#1f(#2)"
  }
});

Or like this, for global macros?

notebook({
  macros: {
    "\\f": "#1f(#2)"
  }
});
@enkimute enkimute self-assigned this Apr 6, 2022
@enkimute
Copy link
Owner

enkimute commented Apr 6, 2022

Macro support is coming (including from external files).

@kungfooman
Copy link
Sponsor Contributor Author

Greeeeeeat (not sure what you mean with external files tho)

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

No branches or pull requests

2 participants