Top Level Namespace
Defined Under Namespace
Modules: MaRuKu Classes: Array, Maruku, String, Textile2Signature
Constant Summary collapse
- OpenDiv =
TODO: Scope these properly
/^[ ]{0,3}\+\-\-+\s*(\{([^{}]*?|".*?"|'.*?')*\})?\s*\-*\s*$/
- CloseDiv =
/^[ ]{0,3}\=\-\-+\s*(\{([^{}]*?|".*?"|'.*?')*\})?\s*\-*\s*$/
- StartPipe =
$1 is rest of line
/^[ ]{0,3}\|(.*)$/
- DecorativeClosing =
OpenDiv
- RegInlineMath =
TODO: Properly scope all these regexps Everything goes; takes care of escaping the “$” inside the expression
/\${1}((?:[^\$]|\\\$)+)\$/
- MathOpen1 =
Regexp.escape('\\begin{equation}')
- MathClose1 =
Regexp.escape('\\end{equation}')
- MathOpen2 =
Regexp.escape('\\[')
- MathClose2 =
Regexp.escape('\\]')
- MathOpen3 =
Regexp.escape('$$')
- MathClose3 =
Regexp.escape('$$')
- EqLabel =
/(?:\((\w+)\))/
- EquationOpen =
/#{MathOpen1}|#{MathOpen2}|#{MathOpen3}/
- EquationClose =
/#{MathClose1}|#{MathClose2}|#{MathClose3}/
- EquationStart =
$1 is opening, $2 is tex
/^[ ]{0,3}(#{EquationOpen})(.*)$/
- EquationEnd =
$1 is tex, $2 is closing, $3 is tex
/^(.*)(#{EquationClose})\s*#{EqLabel}?\s*$/
- OneLineEquation =
$1 is opening, $2 is tex, $3 is closing, $4 is label
/^[ ]{0,3}(#{EquationOpen})(.*)(#{EquationClose})\s*#{EqLabel}?\s*$/
- RegEqrefLatex =
This adds support for eqref
/\\eqref\{(\w+?)\}/
- RegEqPar =
/\(eq:(\w+?)\)/
- RegEqref =
Regexp.union(RegEqrefLatex, RegEqPar)
- RegRef =
This adds support for ref
/\\ref\{(\w*?)\}/
- RegCite =
This adds support for cite
/\\cite\{([^}]*?)\}/