aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/default_regex.org
diff options
context:
space:
mode:
Diffstat (limited to 'org/default_regex.org')
-rw-r--r--org/default_regex.org13
1 files changed, 13 insertions, 0 deletions
diff --git a/org/default_regex.org b/org/default_regex.org
index cba4e9d..659c640 100644
--- a/org/default_regex.org
+++ b/org/default_regex.org
@@ -209,6 +209,10 @@ static grouped_para_bullet_indent_8 = ctRegex!(`^_8[*] `, "m");
static grouped_para_bullet_indent_9 = ctRegex!(`^_9[*] `, "m");
static grouped_para_bullet_indent = ctRegex!(`^_(?P<indent>[1-9])[*] `, "m");
static grouped_para_indent_hang = ctRegex!(`^_(?P<hang>[0-9])_(?P<indent>[0-9])[ ]`, "m");
+/+ ↓ the indent as a number rather than one pattern per level: a writer that renders the indent as a measurement wants
+ the number, where one that writes a fixed run of spaces per level wants the nine above
++/
+static grouped_para_indent = ctRegex!(`^_(?P<indent>[1-9])[ ]`, "m");
#+END_SRC
#+BEGIN_SRC d
@@ -549,6 +553,10 @@ static br_linebreaks = ctRegex!(`[┘┙]`, "mg");
static br_line = ctRegex!(`\s*┘\s*`, "mg");
static br_line_inline = ctRegex!(`\s*┙\s*`, "mg");
static br_line_spaced = ctRegex!(`\s*┚\s*`, "mg");
+/+ ↓ the line break the markup asked for with a trailing " \\\\". xhtml writers
+ carry their own copy of this in rgx_xhtml may be needed by other writers
++/
+static line_break = ctRegex!(` [\\]{2}`, "m");
#+END_SRC
#+BEGIN_SRC d
@@ -641,6 +649,11 @@ static inline_link_seg_and_hash = ctRegex!(`┥(?P<text>.+?)┝â
static inline_link_clean = ctRegex!(`┤(?:.+?)├|[┥┝]`, "mg");
static inline_link_toc_to_backmatter = ctRegex!(`┤#(?P<link>endnotes|bibliography|bookindex|glossary|blurb)├`, "mg");
static find_bookindex_ocn_link_and_comma = ctRegex!(`[, ]*┥.+?┝┤#?\S+?├`, "mg");
+/+ ↓ an internal link target on its own, with or without the segment prefix a segmented output uses. Read where the
+ *target* is the question and the surrounding link may be malformed: gpl3`s copyright line nests one link inside
+ another, which the flat markers cannot express, so the target is there and the pair around it is not
++/
+static any_internal_target = ctRegex!(`┤(?:¤.+?\.fnSuffix)?#(?P<frag>[^├]+)├`, "mg");
static url = ctRegex!(`https?://`, "mg");
static uri = ctRegex!(`(?:https?|git)://`, "mg");
static uri_identify_components = ctRegex!(`(?P<type>(?:https?|git)://)(?P<path>\S+?/)(?P<file>[^/]+)$`, "mg");