From 702eb8985f33ca5781d2da5cedd9d6a4b9c6a030 Mon Sep 17 00:00:00 2001 From: andi Date: Fri, 29 Apr 2005 14:05:48 +0200 Subject: allow blockmodes in lists darcs-hash:20050429120548-9977f-048855b3101e9f104e9fb826ad35042fa8d4c176.gz --- inc/parser/parser.php | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'inc/parser') diff --git a/inc/parser/parser.php b/inc/parser/parser.php index 52d957b09..ac1830a23 100644 --- a/inc/parser/parser.php +++ b/inc/parser/parser.php @@ -87,12 +87,14 @@ class Doku_Parser { //------------------------------------------------------------------- /** -* This class and all the subclasses below are -* used to reduce the effort required to register -* modes with the Lexer. For performance these -* could all be eliminated later perhaps, or -* the Parser could be serialized to a file once -* all modes are registered + * This class and all the subclasses below are + * used to reduce the effort required to register + * modes with the Lexer. For performance these + * could all be eliminated later perhaps, or + * the Parser could be serialized to a file once + * all modes are registered + * + * @author Harry Fuecks */ class Doku_Parser_Mode { @@ -316,10 +318,14 @@ class Doku_Parser_Mode_ListBlock extends Doku_Parser_Mode { Doku_Parser_Substition(), Doku_Parser_Disabled() ); + $this->allowedModes[] = 'footnote'; $this->allowedModes[] = 'preformatted'; $this->allowedModes[] = 'unformatted'; - + $this->allowedModes[] = 'html'; + $this->allowedModes[] = 'php'; + $this->allowedModes[] = 'code'; + $this->allowedModes[] = 'file'; } function connectTo($mode) { -- cgit v1.2.3