Ciconia / A New Markdown Parser for #PHP

class TaskListExtension extends ListExtension

Further, lists can be turned into Task Lists by prefacing list items with [ ] or [x] (incomplete or complete, respectively).

This extension replaces Core\ListExtension

Methods

void register(Markdown $markdown)

Adds listeners to EventEmitter

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

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

from ListExtension
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

from ListExtension

Details

in ListExtension at line 47 public void register(Markdown $markdown)

Adds listeners to EventEmitter

Parameters

Markdown $markdown

Return Value

void

in ListExtension 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 22 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

in ListExtension at line 139 public getName()

Returns the name of the extension