diff options
Diffstat (limited to 'org/default_regex.org')
-rw-r--r-- | org/default_regex.org | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/org/default_regex.org b/org/default_regex.org index c237239..5705fb2 100644 --- a/org/default_regex.org +++ b/org/default_regex.org @@ -505,9 +505,11 @@ static inline_image = ctRegex!(`(?P<pre>ā„)ā static inline_image_without_dimensions = ctRegex!(`(?P<pre>ā„)ā¼(?P<imginf>(?P<img>\S+?\.(?:jpg|gif|png)),w(?P<width>0)h(?P<height>0))\s*(?P<post>.*?āā¤.+?ā)`, "mg"); static inline_link_anchor = ctRegex!(`ā(?P<anchor>\S+?)ā`, "mg"); static inline_link = ctRegex!(`ā„(?P<text>.+?)āā¤(?P<link>\S+?)ā`, "mg"); +static inline_link_number_only = ctRegex!(`(ā„.+?ā)ā¤(?P<num>[0-9]+)ā`, "mg"); +static inline_link_stow_uri = ctRegex!(`ā„(?P<text>.+?)āā¤(?P<link>[^ 0-9#ā„āā¤ā][^ 0-9ā„āā¤ā]+)ā`, "mg"); // will not stow (stowed links) or object number internal links static inline_link_hash = ctRegex!(`ā„(?P<text>.+?)āā¤(?P<link>#(?P<segname>\S+?))ā`, "mg"); static inline_link_clean = ctRegex!(`ā¤(?:.+?)ā|[ā„ā]`, "mg"); -static inline_a_url = ctRegex!(`(ā¤)(\S+?)(ā)`, "mg"); +static inline_a_url = ctRegex!(`(ā¤)([^\sā„āā¤ā]+)(ā)`, "mg"); static url = ctRegex!(`https?://`, "mg"); static inline_link_subtoc = ctRegex!(`^(?P<level>[5-7])~ ā„(?P<text>.+?)āā¤(?P<link>.+?)ā`, "mg"); static fn_suffix = ctRegex!(`\.fnSuffix`, "mg"); |