Steps to Reproduce:
Put a math tag on a page. Add an invocation of a Scribunto module that returns an error.
For instance, see [this minimal example](https://en.wiktionary.org/wiki/Special:Permalink/57866432) on the English Wiktionary, with a Lua-based template that throws an error for an incorrect parameter.fter it, This was reported in a [Grease Pit discussion](https://en.wiktionary.org/wiki/Wiktionary:Grease_pit/2019/October#%22math%22_notation_broken%3F)add an invocation of a Scribunto module that returns an error.
Actual Results:
The math tag fails to display correctly, and is replaced with a [strip marker](https://www.mediawiki.org/wiki/Strip_marker): '"`UNIQ--postMath-00000001-QINU`"' for instance.
Expected Results:
The math tag should display correctly.
Discussion:
For instance, see [this minimal example](https://en.wiktionary.org/wiki/Special:Permalink/57866432) on the English Wiktionary, with a Lua-based template that throws an error for an incorrect parameter. This was reported in a [Grease Pit discussion](https://en.wiktionary.org/wiki/Wiktionary:Grease_pit/2019/October#%22math%22_notation_broken%3F).
[Here](https://en.wiktionary.org/wiki/Special:Permalink/57876111) the math tag renders correctly when the module error is //before// and not after the math tag. When math tags are placed [both before and after a module error](https://en.wiktionary.org/wiki/Special:Permalink/57879637), only the math tag before the module error displays incorrectly. When I add more math tags and module errors, it seems that the last module error on a page breaks all the math tags before it.