v0.5.3
Example document / build (push) Has been cancelled
Python application / build (push) Has been cancelled

- Мелкие исправления увеличивающие работу конвертера
This commit is contained in:
Igor20264
2026-09-10 10:50:15 +03:00
parent 658036f920
commit f7136bd8bd
95 changed files with 7165 additions and 8771 deletions
+16
View File
@@ -0,0 +1,16 @@
import unittest
from md2gost.extended_markdown import markdown, Equation
class TestFormula(unittest.TestCase):
def test_single_line(self):
res = markdown.parse("$$ test $$").children[0]
self.assertIsInstance(res, Equation)
self.assertEqual("test", res.latex_equation)
def test_multi_line(self):
res = markdown.parse("""$$
test
$$""").children[0]
self.assertIsInstance(res, Equation)
self.assertEqual("test", res.latex_equation)