Ciconia / A New Markdown Parser for #PHP

interface RendererInterface

RendererInterface must be implemented by classes that renders result of Markdown

Methods

string renderParagraph($content, array $options = array())
string renderHeader($content, array $options = array())
string renderCodeBlock($content, array $options = array())
string renderCodeSpan($content, array $options = array())
string renderLink($content, array $options = array())
string renderBlockQuote($content, array $options = array())
string renderList($content, array $options = array())
string renderListItem($content, array $options = array())
string renderHorizontalRule(array $options = array())
string renderImage($src, array $options = array())
string renderBoldText($text, array $options = array())
string renderItalicText($text, array $options = array())
string renderLineBreak(array $options = array())
mixed renderTag(string $tagName, string $content, string $tagType = Tag::TYPE_BLOCK, array $options = array())

Details

at line 24 public string renderParagraph($content, array $options = array())

Parameters

$content
array $options

Return Value

string

at line 34 public string renderHeader($content, array $options = array())

Parameters

$content
array $options

Return Value

string

at line 44 public string renderCodeBlock($content, array $options = array())

Parameters

$content
array $options

Return Value

string

at line 54 public string renderCodeSpan($content, array $options = array())

Parameters

$content
array $options

Return Value

string

Parameters

$content
array $options

Return Value

string

at line 74 public string renderBlockQuote($content, array $options = array())

Parameters

$content
array $options

Return Value

string

at line 84 public string renderList($content, array $options = array())

Parameters

$content
array $options

Return Value

string

at line 94 public string renderListItem($content, array $options = array())

Parameters

$content
array $options

Return Value

string

at line 103 public string renderHorizontalRule(array $options = array())

Parameters

array $options

Return Value

string

at line 113 public string renderImage($src, array $options = array())

Parameters

$src
array $options

Return Value

string

at line 123 public string renderBoldText($text, array $options = array())

Parameters

$text
array $options

Return Value

string

at line 133 public string renderItalicText($text, array $options = array())

Parameters

$text
array $options

Return Value

string

at line 142 public string renderLineBreak(array $options = array())

Parameters

array $options

Return Value

string

at line 152 public mixed renderTag(string $tagName, string $content, string $tagType = Tag::TYPE_BLOCK, array $options = array())

Parameters

string $tagName
string $content
string $tagType
array $options

Return Value

mixed