Ciconia / A New Markdown Parser for #PHP

class WhitespaceExtension implements ExtensionInterface, RendererAwareInterface

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

initialize(Text $text)

Convert line breaks

detab(Text $text, array $options = array())

Convert tabs to spaces

outdent(Text $text, array $options = array())

Remove one level of line-leading tabs or spaces

processHardBreak(Text $text)
getName()

Returns the name of the extension

Details

at line 32 public void register(Markdown $markdown)

Adds listeners to EventEmitter

Parameters

Markdown $markdown

Return Value

void

at line 47 public initialize(Text $text)

Convert line breaks

Parameters

Text $text

at line 63 public detab(Text $text, array $options = array())

Convert tabs to spaces

Parameters

Text $text
array $options

at line 77 public outdent(Text $text, array $options = array())

Remove one level of line-leading tabs or spaces

Parameters

Text $text
array $options

at line 85 public processHardBreak(Text $text)

Parameters

Text $text

at line 93 public getName()

Returns the name of the extension