From a76e350bbab364d8f60227c61acf3917a8802d1a Mon Sep 17 00:00:00 2001 From: Chris Sewell Date: Fri, 27 Mar 2020 10:18:15 +0000 Subject: [PATCH] Update myst_target regex pattern to include more characters --- markdown_it/__init__.py | 2 +- markdown_it/extensions/myst_blocks/index.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/markdown_it/__init__.py b/markdown_it/__init__.py index b348aab9..03a783aa 100644 --- a/markdown_it/__init__.py +++ b/markdown_it/__init__.py @@ -1,4 +1,4 @@ from .main import MarkdownIt # noqa: F401 -__version__ = "0.3.0" +__version__ = "0.3.1" diff --git a/markdown_it/extensions/myst_blocks/index.py b/markdown_it/extensions/myst_blocks/index.py index 1cfc6f35..3330c81d 100644 --- a/markdown_it/extensions/myst_blocks/index.py +++ b/markdown_it/extensions/myst_blocks/index.py @@ -5,7 +5,7 @@ from markdown_it.common.utils import charCodeAt, isSpace, escapeHtml -TARGET_PATTERN = re.compile(r"^\(([a-zA-Z0-9\_\-\+\:]{1,36})\)\=\s*$") +TARGET_PATTERN = re.compile(r"^\(([a-zA-Z0-9\|\@\<\>\*\.\/\_\-\+\:]{1,36})\)\=\s*$") def myst_block_plugin(md: MarkdownIt):