aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/default_regex.org
diff options
context:
space:
mode:
Diffstat (limited to 'org/default_regex.org')
-rw-r--r--org/default_regex.org4
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");