From af146da051337e3c5821b6e482d5121816294c67 Mon Sep 17 00:00:00 2001 From: andi Date: Sun, 26 Jun 2005 13:15:13 +0200 Subject: paragraphtypes for syntax plugins darcs-hash:20050626111513-9977f-5b317b14c9544a0c0a637d21816542d394e6606f.gz --- lib/plugins/syntax.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'lib/plugins') diff --git a/lib/plugins/syntax.php b/lib/plugins/syntax.php index 303c0de33..2a67a5ca5 100644 --- a/lib/plugins/syntax.php +++ b/lib/plugins/syntax.php @@ -17,12 +17,30 @@ require_once(DOKU_INC.'inc/parser/parser.php'); class DokuWiki_Syntax_Plugin extends Doku_Parser_Mode { /** + * Syntax Type + * * Needs to return one of the mode types defined in $PARSER_MODES in parser.php */ function getType(){ trigger_error('getType() not implemented in '.get_class($this), E_USER_WARNING); } + /** + * Paragraph Type + * + * Defines how this syntax is handled regarding paragraphs. This is important + * for correct XHTML nesting. Should return one of the following: + * + * 'normal' - The plugin can be used inside paragraphs + * 'block' - Open paragraphs need to be closed before plugin output + * 'stack' - Special case. Plugin wraps other paragraphs. + * + * @see Doku_Handler_Block + */ + function getPType(){ + return 'normal'; + } + /** * Handler to prepare matched data for the rendering process * -- cgit v1.2.3