feat: Set Auto-render to recognize AMS environments without $$…$$ delimiters. (#2701)

* feat: Set Auto-render to recognize AMS environments without $$…$$ delimiters.

* Replace tab with spaces

* Treat AMS environments correctly.
This commit is contained in:
Ron Kok
2020-12-27 15:29:55 -08:00
committed by GitHub
parent 26ed77f598
commit 5c44c47bd2
5 changed files with 38 additions and 6 deletions

View File

@@ -97,6 +97,15 @@ describe("A delimiter splitter", function() {
rawData: "[[ world ]]", display: false},
{type: "text", data: " boo"},
]);
expect("hello \\begin{equation} world \\end{equation} boo").toSplitInto(
"\\begin{equation}", "\\end{equation}",
[
{type: "text", data: "hello "},
{type: "math", data: "\\begin{equation} world \\end{equation}",
rawData: "\\begin{equation} world \\end{equation}",
display: false},
{type: "text", data: " boo"},
]);
});
it("splits mutliple times", function() {