Difference between revisions of "Dokuwiki"

From ThorstensHome
Jump to: navigation, search
(New page: <pre> /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 +0...)
 
Line 1: Line 1:
 +
This is a little patch for dokuwiki to allow h6 headings.
 +
 
<pre>
 
<pre>
 
/srv/www/htdocs/dokuwiki/inc/parser # diff -rup parser-org.php parser.php
 
/srv/www/htdocs/dokuwiki/inc/parser # diff -rup parser-org.php parser.php

Revision as of 15:51, 20 October 2009

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'
                         );