We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f51b60 commit 36f1348Copy full SHA for 36f1348
mode/stex/stex.js
@@ -103,7 +103,7 @@
103
// Do we look like '\command' ? If so, attempt to apply the plugin 'command'
104
if (source.match(/^\\[a-zA-Z@]+/)) {
105
var cmdName = source.current().slice(1);
106
- plug = plugins[cmdName] || plugins["DEFAULT"];
+ plug = plugins.hasOwnProperty(cmdName) ? plugins[cmdName] : plugins["DEFAULT"];
107
plug = new plug();
108
pushCommand(state, plug);
109
setState(state, beginParams);
0 commit comments