NanoMichael / MicroTeX

A dynamic, cross-platform, and embeddable LaTeX rendering library
MIT License
399 stars 66 forks source link

Issues with optional parameters in \newcommand #141

Closed ArcheCraft closed 1 year ago

ArcheCraft commented 1 year ago

In this example

$\newcommand{\plim}[1][n]{\lim\limits_{#1\to\infty}}$
$\plim[x] a_n$
$\plim{x} a_n$
$\plim a_n$

I would expect the \plim usage to not remove the next char after it. It seems like the parser is having issues with commands with optional parameters.

NanoMichael commented 1 year ago

fixed by 4383f55