diff options
author | Ralph Amissah <ralph@amissah.com> | 2018-03-09 16:32:41 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2019-04-10 15:14:14 -0400 |
commit | 73f8706880b753c9be8a27b0c28c59a3a45dfa86 (patch) | |
tree | b76b4b5e12828812efaaa2e4d52e4a6917bb46f0 /org/default_regex.org | |
parent | footnotes fontface; home button text and links (diff) |
home button text, a redo
Diffstat (limited to 'org/default_regex.org')
-rw-r--r-- | org/default_regex.org | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/org/default_regex.org b/org/default_regex.org index 59bd11e..9dbab82 100644 --- a/org/default_regex.org +++ b/org/default_regex.org @@ -252,7 +252,7 @@ static note_ref = ctRegex!(`^\S+?noteref_( static inline_url_generic = ctRegex!(`(?:^|[}(\[ ])(?:(?:https?|git):\/\/|¤?\.\.\/|¤?\.\/|¤|#)[a-zA-Z0-9_#]`, "mg"); static inline_url = ctRegex!(`((?:(?:https?|git):\/\/|¤?\.\.\/|¤?\.\/|¤|#)[a-zA-Z0-9_]\S*)`, "mg"); static inline_link_naked_url = ctRegex!(`(?P<before>^|[ ])(?P<link>(?:(?:https?|git):\/\/|¤?\.\.\/|¤?\.\/|¤|#)\S+?)(?P<after>[.,;:?!'"]?(?:[ ]|$))`, "mg"); -static inline_link_markup_regular = ctRegex!(`(?P<before>^|[ ])\{\s*(?P<content>.+?)\s*\}(?P<link>(?:(?:https?|git):\/\/|¤?\.\.\/|¤?\.\/|¤|#)\S+?)(?P<after>[.,;:?!]?(?:[ ]|$))`, "mg"); +static inline_link_markup_regular = ctRegex!(`(?P<before>^|[ ])\{\s*(?P<content>.+?)\s*\}(?P<link>(?:(?:https?|git):\/\/|¤?\.\.\/|¤?\.\/|¤|#)\S+?)(?P<after>(?:[,;:? ]|[!.]?(?:[ ]|$)))`, "mg"); static inline_link_endnote_url_helper_punctuated = ctRegex!(`\{~\^\s+(?P<content>.+?)\}(?P<link>(?:(?:https?|git):\/\/|¤?\.\.\/|¤?\.\/|¤|#)\S+?)(?P<after>[.,;:?!]?(?:[ ]|$))`, "mg"); static inline_link_endnote_url_helper = ctRegex!(`\{~\^\s+(?P<content>.+?)\}(?P<link>(?:(?:https?|git):\/\/|¤?\.\.\/|¤?\.\/|¤|#)\S+)`, "mg"); #+END_SRC @@ -436,6 +436,19 @@ static src_formalised_file_path_parts = ctRegex!(`(?P<pth>(?:[/a #+END_SRC ** inline markup + +*** inline breaks + +#+name: prgmkup_rgx +#+BEGIN_SRC d +/+ line breaks +/ +static br_line = ctRegex!(`┘`, "mg"); +static br_nl = ctRegex!(`┙`, "mg"); +static br_paragraph = ctRegex!(`┚`, "mg"); +static br_page_line = ctRegex!(`┼`, "mg"); +static br_page = ctRegex!(`┿`, "mg"); +static br_page_new = ctRegex!(`╂`, "mg"); +#+END_SRC *** inline (internal program) markup footnotes endnotes :inline:footnote: #+name: prgmkup_rgx |