mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 19:12:27 +08:00
Fixed indentation
This commit is contained in:
parent
6e8e343301
commit
6a9b44e4a1
@ -213,10 +213,10 @@ $$`;
|
||||
});
|
||||
|
||||
it("converts math expressions inside list items into Mathtex format", () => {
|
||||
const input = `- First item with formula: $E = mc^2$`;
|
||||
const expected = /*html*/`<ul><li>First item with formula: <span class="math-tex">\\(E = mc^2\\)</span></li></ul>`;
|
||||
expect(markdownService.renderToHtml(input, "Title")).toStrictEqual(expected);
|
||||
});
|
||||
const input = `- First item with formula: $E = mc^2$`;
|
||||
const expected = /*html*/`<ul><li>First item with formula: <span class="math-tex">\\(E = mc^2\\)</span></li></ul>`;
|
||||
expect(markdownService.renderToHtml(input, "Title")).toStrictEqual(expected);
|
||||
});
|
||||
|
||||
it("converts display math expressions into Mathtex format", () => {
|
||||
const input = `$$\sqrt{x^{2}+1}$$`;
|
||||
|
Loading…
x
Reference in New Issue
Block a user