Skip to content

Commit

Permalink
Merge pull request #72 from braingram/3p11
Browse files Browse the repository at this point in the history
py311 compatibility
  • Loading branch information
braingram authored Jul 13, 2023
2 parents 9872272 + 1ced3c9 commit 56036e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/sphinx_asdf_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ jobs:
strategy:
matrix:
include:
- name: Python 3.11 Tests
python-version: "3.11"
os: ubuntu-latest
toxenv: py311

- name: Python 3.10 Tests
python-version: "3.10"
os: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion sphinx_asdf/md2rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ def md2rst(content):
converter = mistune.create_markdown(renderer=renderer)
INLINE_MATH_PATTERN = r"\$\$?(?!\s)(?P<math_text>.+?)(?!\s)(?<!\\)\$\$?"
converter.inline.register("inline_math", INLINE_MATH_PATTERN, parse_inline_math, before="link")
BLOCK_MATH_PATTERN = r"(?s)\$\$(?P<math_text>.*?)\$\$"
BLOCK_MATH_PATTERN = r"\$\$(?P<math_text>[\w\W]*?)\$\$"
converter.block.register("block_math", BLOCK_MATH_PATTERN, parse_block_math, before="list")
return converter(content)

0 comments on commit 56036e7

Please sign in to comment.