Lines Matching +full:dokuwiki +full:- +full:env
3 * DokuWiki Plugin mathjax (Syntax Component)
5 * @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html
9 // must be run within Dokuwiki
16 # We need to grab any math before dokuwiki tries to parse it.
19 # Set of environments that this plugin will protect from Dokuwiki parsing
22 # recognized by Mathjax... They will still be protected from Dokuwiki,
64 * regexp patterns adapted from jsMath plugin: https://www.dokuwiki.org/plugin:jsmath
69 …$this->Lexer->addEntryPattern('(?<!\\\\)\$(?=[^\$][^\r\n]*?\$)',$mode,'plugin_mathjax_protecttex');
70 $this->Lexer->addEntryPattern('\$\$(?=.*?\$\$)',$mode,'plugin_mathjax_protecttex');
71 $this->Lexer->addEntryPattern('\\\\\((?=.*?\\\\\))',$mode,'plugin_mathjax_protecttex');
72 $this->Lexer->addEntryPattern('\\\\\[(?=.*?\\\\])',$mode,'plugin_mathjax_protecttex');
73 foreach (self::$ENVIRONMENTS as $env) {
74 …$this->Lexer->addEntryPattern('\\\\begin{' . $env . '}(?=.*?\\\\end{' . $env . '})',$mode,'plugin_…
77 if ($this->getConf('asciimath')) {
79 $this->Lexer->addEntryPattern('`(?=.*?`)',$mode,'plugin_mathjax_protecttex');
83 $conf_mathtags = $this->getConf('mathtags');
88 …$this->Lexer->addEntryPattern('<' . $tag . '.*?>(?=.*?</' . $tag . '>)',$mode,'plugin_mathjax_prot…
92 $this->Lexer->addExitPattern('\$(?!\$)','plugin_mathjax_protecttex');
93 $this->Lexer->addExitPattern('\\\\\)','plugin_mathjax_protecttex');
94 $this->Lexer->addExitPattern('\\\\\]','plugin_mathjax_protecttex');
95 foreach (self::$ENVIRONMENTS as $env) {
96 $this->Lexer->addExitPattern('\\\\end{' . $env . '}','plugin_mathjax_protecttex');
99 if ($this->getConf('asciimath')) {
101 $this->Lexer->addExitPattern('`','plugin_mathjax_protecttex');
105 $conf_mathtags = $this->getConf('mathtags');
110 $this->Lexer->addExitPattern('</' . $tag . '>','plugin_mathjax_protecttex');
117 * This function can only pass data to render() via its return value - render()
146 $renderer->doc .= $renderer->_xmlEntities($data);
151 $renderer->mathjax_content($data);
156 $renderer->doc .= $data;