Ciconia / A New Markdown Parser for #PHP

class FencedCodeBlockExtension implements ExtensionInterface, RendererAwareInterface

Markdown converts text with four spaces at the front of each line to code blocks.

GFM supports that, but we also support fenced blocks. Just wrap your code blocks in ``` and you won't need to indent manually to trigger a code block.

PHP Markdown style ~ is also available.

Methods

void register(Markdown $markdown)

Adds listeners to EventEmitter

processFencedCodeBlock(Text $text)
getName()

Returns the name of the extension

Details

at line 33 public void register(Markdown $markdown)

Adds listeners to EventEmitter

Parameters

Markdown $markdown

Return Value

void

at line 44 public processFencedCodeBlock(Text $text)

Parameters

Text $text

at line 79 public getName()

Returns the name of the extension