Difference between revisions of "Dokuwiki"

From ThorstensHome
Jump to: navigation, search
Line 1: Line 1:
 +
This describes my patches to adapt Dokuwiki for my needs
 +
 +
= allow h6 headings =
 
This is a little patch for dokuwiki to allow h6 headings.
 
This is a little patch for dokuwiki to allow h6 headings.
  
Line 15: Line 18:
 
                         );
 
                         );
 
</pre>
 
</pre>
 +
 +
= use mediawiki syntax in dokuwiki =
 +
Take a look at inc/parser/handler.php, function header().
  
 
= See also =
 
= See also =
 
* http://johbuc6.coconia.net/mediawiki2dokuwiki.php
 
* http://johbuc6.coconia.net/mediawiki2dokuwiki.php

Revision as of 14:55, 22 October 2009

This describes my patches to adapt Dokuwiki for my needs

allow h6 headings

This is a little patch for dokuwiki to allow h6 headings.

/srv/www/htdocs/dokuwiki/inc/parser # diff -rup parser-org.php parser.php
--- parser-org.php      2009-10-20 15:49:57.000000000 +0200
+++ parser.php  2009-10-20 15:48:25.000000000 +0200
@@ -223,7 +223,7 @@ class Doku_Parser_Mode_header extends Do
     function preConnect() {
         //we're not picky about the closing ones, two are enough
         $this->Lexer->addSpecialPattern(
-                            '[ \t]*={2,}[^\n]+={2,}[ \t]*(?=\n)',
+                            '[ \t]*={1,}[^\n]+={1,}[ \t]*(?=\n)',
                             'base',
                             'header'
                         );

use mediawiki syntax in dokuwiki

Take a look at inc/parser/handler.php, function header().

See also