Ciconia / A New Markdown Parser for #PHP

class HtmlRenderer implements RendererInterface

Renders markdown result to HTML format

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(string|Text $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 20 public string renderParagraph($content, array $options = array())

Parameters

$content
array $options

Return Value

string

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

Parameters

$content
array $options

Return Value

string

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

Parameters

$content
array $options

Return Value

string

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

Parameters

$content
array $options

Return Value

string

Parameters

string|Text $content
array $options

Return Value

string

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

Parameters

$content
array $options

Return Value

string

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

Parameters

$content
array $options

Return Value

string

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

Parameters

$content
array $options

Return Value

string

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

Parameters

array $options

Return Value

string

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

Parameters

$src
array $options

Return Value

string

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

Parameters

$text
array $options

Return Value

string

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

Parameters

$text
array $options

Return Value

string

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

Parameters

array $options

Return Value

string

at line 183 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