fixed mathjax in code

This commit is contained in:
Klemek
2019-07-18 16:41:25 +02:00
parent e14f9fc4af
commit 2e8ff1be92
2 changed files with 22 additions and 13 deletions
+6
View File
@@ -157,6 +157,12 @@ describe('Test MathJax', () => {
done();
});
});
test('no eq in code', (done) => {
renderer.renderMathJax('this code is ```start $a$ end $$hello$$``` beautiful', (data) => {
expect(data).toBe('this code is ```start $a$ end $$hello$$``` beautiful');
done();
});
});
test('multiple eq', (done) => {
renderer.renderMathJax('$$\n\nA\n\n$$\nstart $a$ end\n$$\n\nA\n\n$$', (data) => {
expect(data).toBe('' +