diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-03-02 22:52:39 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-05-17 00:42:22 +0900 |
commit | e675ad2ec91407d516a51304f6bd7fd683f2371c (patch) | |
tree | d33c289de66b22d0e9c5ea133afc3b15e8f91712 /tests/test_ext_math.py | |
parent | 4e04bff4f50bc382251437d5faafff9c34c492cb (diff) | |
download | sphinx-git-e675ad2ec91407d516a51304f6bd7fd683f2371c.tar.gz |
Enable math_block node rendering by default (without HTML builders)
Diffstat (limited to 'tests/test_ext_math.py')
-rw-r--r-- | tests/test_ext_math.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_ext_math.py b/tests/test_ext_math.py index d3580e986..47465f07e 100644 --- a/tests/test_ext_math.py +++ b/tests/test_ext_math.py @@ -230,3 +230,10 @@ def test_math_compat(app, status, warning): [nodes.math, "E=mc^2"], '\nInline my math: ', [nodes.math, "E = mc^2"])) + assert_node(doctree[0][2], + ([nodes.title, "block"], + [nodes.math_block, "a^2+b^2=c^2\n\n"], + [nodes.paragraph, "Second math"], + [nodes.math_block, "e^{i\\pi}+1=0\n\n"], + [nodes.paragraph, "Multi math equations"], + [nodes.math_block, "E = mc^2"])) |