Implement correct macros for liminf and limsup, fixes #111 (#887)

* Implement correct macros for liminf and limsup, fixes #111

* fix nits
This commit is contained in:
Kevin Barabash
2017-12-26 17:11:10 -07:00
committed by GitHub
parent c883b3d54d
commit 7229f02d8f
12 changed files with 159 additions and 23 deletions

View File

@@ -21,7 +21,9 @@ function init() {
}
var macros = {};
var options = {};
// TODO: Add toggle for displayMode.
// https://github.com/Khan/KaTeX/issues/1035
var options = {displayMode: true};
var macroRegex = /(?:^\?|&)(?:\\|%5[Cc])([A-Za-z]+)=([^&]*)/g;
var macroString = "";
while ((match = macroRegex.exec(window.location.search)) !== null) {