diff options
author | Ralph Amissah <ralph@amissah.com> | 2016-11-18 10:17:40 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2019-04-10 15:14:13 -0400 |
commit | a881c428c12f4948e4ea65b9315a3fabef8c7b4f (patch) | |
tree | 8c6c1cf05126f86fe955a4601cd92fb0a9a399bb /org/ao_defaults.org | |
parent | minor reorganise same (diff) |
munge links & urls for sections: toc, endnotes, book index
Diffstat (limited to 'org/ao_defaults.org')
-rw-r--r-- | org/ao_defaults.org | 11 |
1 files changed, 6 insertions, 5 deletions
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<text>.+?)ã #+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: |