Skip to content

Commit

Permalink
Bump markdown-it version (allow multi-line inline math)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell committed Apr 1, 2020
1 parent 73db682 commit 60ea3a2
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 3 deletions.
2 changes: 1 addition & 1 deletion myst_parser/__init__.py
@@ -1,4 +1,4 @@
__version__ = "0.8.0a3"
__version__ = "0.8.0a5"


def setup(app):
Expand Down
2 changes: 1 addition & 1 deletion myst_parser/sphinx_renderer.py
@@ -1,6 +1,7 @@
from contextlib import contextmanager
import copy
from urllib.parse import unquote
import tempfile
from typing import cast

from docutils import nodes
Expand Down Expand Up @@ -115,7 +116,6 @@ def __init__(self, confoverrides=None, srcdir=None):
self.preload_builder(buildername)
self.config.init_values()
self.events.emit("config-inited", self.config)
import tempfile

with tempfile.TemporaryDirectory() as tempdir:
# creating a builder attempts to make the doctreedir
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -36,7 +36,7 @@
],
keywords="markdown lexer parser development docutils sphinx",
python_requires=">=3.6",
install_requires=["markdown-it-py~=0.4.3"],
install_requires=["markdown-it-py~=0.4.5"],
extras_require={
"sphinx": ["pyyaml", "docutils>=0.15", "sphinx>=2,<3"],
"code_style": ["flake8<3.8.0,>=3.7.0", "black", "pre-commit==1.17.0"],
Expand Down
29 changes: 29 additions & 0 deletions tests/test_renderers/fixtures/syntax_elements.md
Expand Up @@ -265,6 +265,35 @@ $foo$
foo
.

--------------------------
Inline Math, multi-line:
.
a $foo
bar$ b
.
<document source="notset">
<paragraph>
a
<math>
foo
bar
b
.

--------------------------
Inline Math, multi-line with line break (invalid):
.
a $foo

bar$ b
.
<document source="notset">
<paragraph>
a $foo
<paragraph>
bar$ b
.

--------------------------
Math Block:
.
Expand Down

0 comments on commit 60ea3a2

Please sign in to comment.