Class humhub\libs\MarkdownPreview

Inheritancehumhub\libs\MarkdownPreview » cebe\markdown\Parser
Uses Traitscebe\markdown\block\HeadlineTrait
Available since version0.11.1

MarkdownPreview generates a plain text (no HTML) of markdown.

Some elements like images or links will be displayed more clearly.

Method Details

parseImage() protected method

protected void parseImage ( $markdown )
$markdown
parseLink() protected method

Parses a link indicated by [.

protected void parseLink ( $markdown )
$markdown
parseLinkOrImage() protected method

protected void parseLinkOrImage ( $markdown )
$markdown
renderHeadline() protected method

Renders a headline

protected void renderHeadline ( $block )
$block
renderImage() protected method

protected void renderImage ( $block )
$block
renderLink() protected method

protected void renderLink ( $block )
$block
renderParagraph() protected method

protected void renderParagraph ( $block )
$block