Ciconia / A New Markdown Parser for #PHP

class ImageExtension implements ExtensionInterface, RendererAwareInterface

Turn Markdown image shortcuts into tags.

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

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

Handle reference-style labeled images: ![alt text][id]

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

handle inline images: alt text

getName()

Returns the name of the extension

Details

at line 35 public void register(Markdown $markdown)

Adds listeners to EventEmitter

Parameters

Markdown $markdown

Return Value

void

at line 49 public processReferencedImage(Text $text, array $options = array())

Handle reference-style labeled images: ![alt text][id]

Parameters

Text $text
array $options

at line 112 public processInlineImage(Text $text, array $options = array())

handle inline images: alt text

Parameters

Text $text
array $options

at line 165 public getName()

Returns the name of the extension