Changes to style in language file has no effect. Dokuwiki uses a single stylesheet for all languages. Comment out the following line in parserutils.php
to disable.
... 760 // $geshi->enable_classes(); ...
Incorporating ASCIIMathML.js requires disabling JavaScript compression in the configuration settings.
ASCIIMathML.js
to the conf/
directory.userscript.js
to include ASCIIMathML.js
./* DOKUWIKI:include ASCIIMathML.js */
local.php
to disable JavaScript compression:$conf['compress'] = 0; // for ASCIIMathML.js
Incorporating the Tiny Diagram JavaScript renderer requires the following changes:
diag
to the list of formatting modes in inc/parserutils.php
.// add formatting modes $fmt_modes = array('strong','emphasis','underline','monospace','diag', 'subscript','superscript','deleted');
inc/parser/handler.php
.function diag($match, $state, $pos) { $this->_nestingTag($match, $state, $pos, 'diag'); return true; }
/inc/parser/xhtml.php
./** * Start diag formatting */ function diag_open() { $this->doc .= '<div class="diag">'; } /** * Stop diag formatting */ function diag_close() { $this->doc .= '</div>'; }
diag
to the formatting
modes in src/parser/parser.php
.// modes for styling text -- footnote behaves similar to styling 'formatting' => array('strong', 'emphasis', 'underline', 'monospace','diag', 'subscript', 'superscript', 'deleted', 'footnote'),
'diag'=> array ( 'entry'=>'<diag>(?=.*</diag>)', 'exit'=>'</diag>', 'sort'=>140 ),
inc/parser/renderer.php
./** * Start diag formatting */ function diag_open() { } /** * Stop diag formatting */ function diag_close() { }
tinydiagram.js
to the conf/
directory.userscript.js
to include tinydiagram.js
./* DOKUWIKI:include tinydiagram.js */
local.php
to disable quotation character conversion:$conf['typography'] = 0; // for Tiny Diagram