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)"
}
});
It would be nice to be able to define KaTeX macros for
md
, maybe with a syntax like:Or like this, for global macros?