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.org18
1 files changed, 18 insertions, 0 deletions
diff --git a/org/default_regex.org b/org/default_regex.org
index e8b6b3f..2958027 100644
--- a/org/default_regex.org
+++ b/org/default_regex.org
@@ -415,6 +415,24 @@ static xhtml_greater_than = ctRegex!(`[>]`, "m"); /
static xhtml_line_break = ctRegex!(` [\\]{2}`, "m"); // <br />
#+END_SRC
+*** latex special characters
+
+#+name: sp_ch_xhtml_rgx
+#+BEGIN_SRC d
+static latex_special_char_shortlist = ctRegex!(`([%$_#&\\])`);
+static latex_special_char_curlybraces = ctRegex!(`([{}])`);
+static latex_special_char = ctRegex!(`([%${}_#&\\])`);
+static latex_special_char_for_escape = ctRegex!(`([%${}_#\\])`);
+static latex_special_char_for_escape_and_braces = ctRegex!(`([&])`);
+static latex_special_char_for_escape_url = ctRegex!(`([%])`);
+static latex_special_char_escaped = ctRegex!(`\\([%${}_#\\])`);
+static latex_special_char_escaped_braced = ctRegex!(`[{]\\([&])[}]`);
+static latex_identify_inline_link = ctRegex!(`┥.+?┝┤\S+?├`, "mg");
+static latex_clean_internal_link = ctRegex!(`^(?:#|¤\S+?#)`, "m");
+static latex_identify_inline_fontface = ctRegex!(`\\([_#$]┨.+?┣)\\([_#$])`, "mg");
+static latex_clean_bookindex_linebreak = ctRegex!(`\s*\\\\\\\\\s*`, "m");
+#+END_SRC
+
* 2. ctRegex defaults shared by meta & output (generic)
** misc generic