Ciconia / A New Markdown Parser for #PHP

class LinkExtension 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, array $options = array())

Strips link definitions from text, stores the URLs and titles in hash references.

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

Handle reference-style links: [link text] [id]

processInlineLink(Text $text)

Inline-style links: link text

processAutoLink(Text $text)

Make links out of things like <http://example.com/>

getName()

Returns the name of the extension

Details

at line 34 public void register(Markdown $markdown)

Adds listeners to EventEmitter

Parameters

Markdown $markdown

Return Value

void

at line 50 public initialize(Text $text, array $options = array())

Strips link definitions from text, stores the URLs and titles in hash references.

Parameters

Text $text
array $options

Handle reference-style links: [link text] [id]

Parameters

Text $text
array $options

Inline-style links: link text

Parameters

Text $text

Make links out of things like <http://example.com/>

Parameters

Text $text

at line 248 public getName()

Returns the name of the extension