From a881c428c12f4948e4ea65b9315a3fabef8c7b4f Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Fri, 18 Nov 2016 10:17:40 -0500 Subject: munge links & urls for sections: toc, endnotes, book index --- org/ao_defaults.org | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'org/ao_defaults.org') diff --git a/org/ao_defaults.org b/org/ao_defaults.org index 4ed98a6..20952fb 100644 --- a/org/ao_defaults.org +++ b/org/ao_defaults.org @@ -701,11 +701,12 @@ static inline_text_and_note_al = ctRegex!(`(?P.+?) #+name: ao_rgx #+BEGIN_SRC d -static inline_url = ctRegex!(`((?:https?|git):\/\/\S+)`, "mg"); -static inline_link_naked_url = ctRegex!(`(^|[ ])((?:https?|git):\/\/\S+?)([.,;:?!]?(?:[ ]|$))`, "mg"); -static inline_link_markup_regular = ctRegex!(`(^|[ ])\{\s*(.+?)\s*\}((?:https?|git):\/\/\S+?)([.,;:?!]?(?:[ ]|$))`, "mg"); -static inline_link_endnote_url_helper_punctuated = ctRegex!(`\{~\^\s+(.+?)\}((?:https?|git):\/\/\S+?)([.,;:?!]?(?:[ ]|$))`, "mg"); -static inline_link_endnote_url_helper = ctRegex!(`\{~\^\s+(.+?)\}((?:https?|git):\/\/\S+)`, "mg"); +static inline_url = ctRegex!(`((?:(?:https?|git):\/\/|\.\.\/|\.\/|#)\S+)`, "mg"); +static inline_link_naked_url = ctRegex!(`(^|[ ])((?:(?:https?|git):\/\/|\.\.\/|\.\/|#)\S+?)([.,;:?!]?(?:[ ]|$))`, "mg"); +static inline_link_markup_regular = ctRegex!(`(^|[ ])\{\s*(.+?)\s*\}((?:(?:https?|git):\/\/|\.\.\/|\.\/|#)\S+?)([.,;:?!]?(?:[ ]|$))`, "mg"); +static inline_link_endnote_url_helper_punctuated = ctRegex!(`\{~\^\s+(.+?)\}((?:(?:https?|git):\/\/|\.\.\/|\.\/|#)\S+?)([.,;:?!]?(?:[ ]|$))`, "mg"); +static inline_link_endnote_url_helper = ctRegex!(`\{~\^\s+(.+?)\}((?:(?:https?|git):\/\/|\.\.\/|\.\/|#)\S+)`, "mg"); +static inline_a_url = ctRegex!(`(┤)(\S+?)(├)`, "mg"); #+END_SRC ** inline markup book index :inline:bookindex: -- cgit v1.2.3