diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2019-01-13 14:19:04 -0500 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2019-05-17 16:59:38 -0400 |
commit | 87d62f48d6c8a2ccf9807f56c23a6ca71d1102e6 (patch) | |
tree | e367aff1a05f89104c7c81ac8a6c618a4f38b021 /org/default_regex.org | |
parent | 0.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.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"); |