joeyuping / quick_latex_obsidian

MIT License
327 stars 21 forks source link

Custom Shorthand: Include Description of Order Priority to avoid Parameter Overlap Conflicts #128

Open ArgensVentus opened 5 months ago

ArgensVentus commented 5 months ago

In custom shorthand, if I were to make the following shorthands:

->:::\xrightarrow[#cursor]{#tab};
<->:::\xleftrightarrow[#cursor]{#tab};

the shorthand $<->$ will always be ignored to generate <\xrightarrow[#cursor]{#tab}.

This is fixed by switching the parameter order to be:

<->:::\xleftrightarrow[#cursor]{#tab};
->:::\xrightarrow[#cursor]{#tab};

but I would recommend including a line under the description of "Custom Shorthand Parameter" to indicate that the list order does matter