Ciconia / A New Markdown Parser for #PHP

class ListExtension implements ExtensionInterface, RendererAwareInterface, EmitterAwareInterface

Form HTML ordered (numbered) and unordered (bulleted) lists.

Original source code from Markdown.pl

Copyright (c) 2004 John Gruber http://daringfireball.net/projects/markdown/

Methods

void register(Markdown $markdown)

Adds listeners to EventEmitter

processList(Text $text, array $options = array(), int $level)

Form HTML ordered (numbered) and unordered (bulleted) lists.

processListItems(Text $list, array $options = array(), int $level)

Process the contents of a single ordered or unordered list, splitting it into individual list items.

getName()

Returns the name of the extension

Details

at line 47 public void register(Markdown $markdown)

Adds listeners to EventEmitter

Parameters

Markdown $markdown

Return Value

void

at line 61 public processList(Text $text, array $options = array(), int $level)

Form HTML ordered (numbered) and unordered (bulleted) lists.

Parameters

Text $text
array $options
int $level

at line 109 public processListItems(Text $list, array $options = array(), int $level)

Process the contents of a single ordered or unordered list, splitting it into individual list items.

Parameters

Text $list
array $options
int $level

at line 139 public getName()

Returns the name of the extension