Support for custom LaTeX macros

Might it be possible to allow for users to set custom LaTeX macros in some way (see the KaTeX docs for specification – https://katex.org/docs/options.html )?

A post was split to a new topic: Using espanso (a text expander) to automate writing LaTeX

Related: Enable HTML in KaTeX formulas which similarly requires setting some KaTeX options.