aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/default_regex.org
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2019-01-13 14:19:04 -0500
committerRalph Amissah <ralph.amissah@gmail.com>2019-05-17 16:59:38 -0400
commit87d62f48d6c8a2ccf9807f56c23a6ca71d1102e6 (patch)
treee367aff1a05f89104c7c81ac8a6c618a4f38b021 /org/default_regex.org
parent0.4.2 xmls output, internal (diff)
0.4.3 stow (most) uri/links in array, separate from object text
- munge independently - no need to consider special munging of uri with text - uri can easily be munged independently (encoded as need be)
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");