Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
creole_parser Class Reference
Inheritance diagram for creole_parser:

Public Member Functions

 get_section ($header, $text, $clean=false)
 

Protected Member Functions

 before_parsing ()
 Block hooks.
 
 bold_tag_rule ($match)
 Special treatment of // ** // ** //.
 
 header_block_rule ($match)
 
 image_tag_rule ($match)
 
 link_tag_rule ($match)
 
 paragraph_block_rule ($match)
 
 table_block_rule ($match)
 Table generation.
 
 url_tag_rule ($match)
 Tag functions.
 

Protected Attributes

 $blockrules
 
 $tagrules
 

Member Data Documentation

◆ $blockrules

creole_parser::$blockrules
protected
Initial value:
= array(
'nowiki' => array(
'expression' => "/^\{\{\{(.*?)::}::}::}/ims",
'tags' => array(),
'token' => array('{{{', '}}}')
),
'header' => array(
'expression' => "/^\ *(={1,6}):: *(.+?)=*:: *$/ims",
'tags' => array(),
'token' => '='
),
'table' => array(
'expression' => "/^(?:\|.*?::| *::n)+/ims"
),
'line_break' => array(
'expression' => "/^----\s*$/im",
'token' => '----',
'tags' => array()
),
'list' => array(
'expression' => "/((?:^\ *[::*#][^::*#]:: *.+?)(?:^:: *[::*#]{1,5}:: *.+?)*)(::n::s*(?:::n|<(?:h::d|pre|table|tbody|thead|tr|th|td|ul|li|ol|hr)))/ims",
'tags' => array(),
'token' => array('*', '#')
),
'paragraph' => array(
'expression' => "/^\ *((?:<(?!:: *::/?(?:h::d|pre|table|tbody|thead|tr|th|td|ul|li|ol|hr):: *::/?>)|[^<::s]).+?)::n::s*::n/ims",
'tag' => 'p'
)
)

The documentation for this class was generated from the following file: