Adding custom entries to the latexDictionary usually works as intended. However, if you modify latexOptions before modifying latexDictionary, any custom dictionary entries get ignored. This does not happen when latexOptions are modified after modifying latexDictionary.
Description
Adding custom entries to the
latexDictionary
usually works as intended. However, if you modifylatexOptions
before modifyinglatexDictionary
, any custom dictionary entries get ignored. This does not happen whenlatexOptions
are modified after modifyinglatexDictionary
.Steps to Reproduce
Actual Behavior
The code outputs
\mathrm{Absolute}(2)
.Expected Behavior
The code outputs
\left|2\right|
.Environment
Operating System macOS 14.3.1
Browser Node and Bun