Skip to content

Commit 4a7ac78

Browse files
authored
🐛 FIX: MyST Role regex (#34)
Allow role names with digits 0-9
1 parent bd9d6d1 commit 4a7ac78

File tree

1 file changed

+1
-1
lines changed
  • markdown_it/extensions/myst_role

1 file changed

+1
-1
lines changed

markdown_it/extensions/myst_role/index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from markdown_it.common.utils import charCodeAt, escapeHtml
66

77

8-
PATTERN = re.compile(r"^\{([a-zA-Z\_\-\+\:]{1,36})\}(`+)(?!`)(.+?)(?<!`)\2(?!`)")
8+
PATTERN = re.compile(r"^\{([a-zA-Z0-9\_\-\+\:]{1,36})\}(`+)(?!`)(.+?)(?<!`)\2(?!`)")
99

1010

1111
def myst_role_plugin(md: MarkdownIt):

0 commit comments

Comments
 (0)