From d21e5b572433f39111282805435e6337f0e1b4c0 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Mon, 20 May 2019 10:20:38 -0400 Subject: 0.7.2 latex (for pdf) (initial stub) --- src/doc_reform/output/rgx.d | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/doc_reform/output/rgx.d') diff --git a/src/doc_reform/output/rgx.d b/src/doc_reform/output/rgx.d index c9e9516..5ab71f9 100644 --- a/src/doc_reform/output/rgx.d +++ b/src/doc_reform/output/rgx.d @@ -132,5 +132,17 @@ static template DocReformOutputRgxInit() { static xhtml_less_than = ctRegex!(`[<]`, "m"); // < static xhtml_greater_than = ctRegex!(`[>]`, "m"); // > static xhtml_line_break = ctRegex!(` [\\]{2}`, "m"); //
+ 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"); } } -- cgit v1.2.3