[LRN] Allow direct entry of $ (dollar sign) By removing the binding that creates a text block when $ is pressed.
diff --git a/src/commands/text.js b/src/commands/text.js index 42f85d4..d19853b 100644 --- a/src/commands/text.js +++ b/src/commands/text.js
@@ -287,7 +287,6 @@ }; }); -CharCmds.$ = LatexCmds.text = LatexCmds.textnormal = LatexCmds.textrm =
diff --git a/test/unit/typing.test.js b/test/unit/typing.test.js index 3ba3b31..e8929bb 100644 --- a/test/unit/typing.test.js +++ b/test/unit/typing.test.js
@@ -56,6 +56,11 @@ mq.typedText('\\asdf+'); assertLatex('\\text{asdf}+'); }); + + test('dollar sign', function() { + mq.typedText('$'); + assertLatex('\\$'); + }); }); suite('auto-expanding parens', function() {