Lines Matching +full:dokuwiki +full:- +full:env
4 * DokuWiki Plugin latexit (Syntax Component)
5 * This file is based on mathjax syntax plugin https://www.dokuwiki.org/plugin:mathjax
7 * @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html
11 // must be run within Dokuwiki
23 # We need to grab any math before dokuwiki tries to parse it.
25 # Set of environments that this plugin will protect from Dokuwiki parsing
28 # recognized by Mathjax... They will still be protected from Dokuwiki,
57 * @return int Sort order - Low numbers go before high numbers
60 if (!isset($this->sort)) {
63 return $this->sort;
72 $this->sort = $sort;
77 * regexp patterns adapted from jsMath plugin: http://www.dokuwiki.org/plugin:jsmath
82 … $this->Lexer->addEntryPattern('(?<!\\\\)\$(?=[^\$][^\r\n]*?\$)', $mode, 'plugin_latexit_mathjax');
83 $this->Lexer->addEntryPattern('\$\$(?=.*?\$\$)', $mode, 'plugin_latexit_mathjax');
84 $this->Lexer->addEntryPattern('\\\\\((?=.*?\\\\\))', $mode, 'plugin_latexit_mathjax');
85 $this->Lexer->addEntryPattern('\\\\\[(?=.*?\\\\])', $mode, 'plugin_latexit_mathjax');
86 foreach (self::$ENVIRONMENTS as $env) {
87 …$this->Lexer->addEntryPattern('\\\\begin{' . $env . '}(?=.*?\\\\end{' . $env . '})', $mode, 'plugi…
92 $this->Lexer->addExitPattern('\$(?!\$)', 'plugin_latexit_mathjax');
93 $this->Lexer->addExitPattern('\\\\\)', 'plugin_latexit_mathjax');
94 $this->Lexer->addExitPattern('\\\\\]', 'plugin_latexit_mathjax');
95 foreach (self::$ENVIRONMENTS as $env) {
96 $this->Lexer->addExitPattern('\\\\end{' . $env . '}', 'plugin_latexit_mathjax');
133 $renderer->_mathMode($data);