We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
rst.inline_markup_gen()
1 parent dc0514d commit b9a37b3Copy full SHA for b9a37b3
sphinxlint/rst.py
@@ -4,6 +4,7 @@
4
- All constants are ALL_CAPS
5
- All compiled regexes are suffixed by _RE
6
"""
7
+from functools import cache
8
9
import regex as re
10
@@ -151,6 +152,7 @@
151
152
UNICODE_ALLOWED_AFTER_INLINE_MARKUP = r"\p{Pe}\p{Pi}\p{Pf}\p{Pd}\p{Po}"
153
154
155
+@cache
156
def inline_markup_gen(start_string, end_string, extra_allowed_before=""):
157
"""Generate a regex matching an inline markup.
158
0 commit comments