Class luya\tag\TagMarkdownParser

Inheritanceluya\tag\TagMarkdownParser » cebe\markdown\GithubMarkdown
Available since version1.0.0
Source Code https://github.com/luyadev/luya/blob/master/core/tag/TagMarkdownParser.php

Tag Parser Markdown.

In order to fix conflicts with the TagParser the auto enabled url parser is disabled. This means the following will not genereate a link tag:

Otherwise those values would be automatiaclly converted to html link tags (www.luya.io).

Public Properties

Hide inherited properties

Property Type Description Defined By
$enableNewlines boolean To convert all newlines to <br/>-tags. luya\tag\TagMarkdownParser

Protected Methods

Hide inherited methods

Method Description Defined By
parseUrl() Disable the url parsing of markdown. luya\tag\TagMarkdownParser

Property Details

Hide inherited properties

$enableNewlines public property

To convert all newlines to <br/>-tags. By default only newlines with two preceding spaces are converted to <br/>-tags.

public boolean $enableNewlines true

Method Details

Hide inherited methods

parseUrl() protected method

Disable the url parsing of markdown.

Will not be parsed to an a tag.

protected array|void parseUrl ( $markdown )
$markdown string

                protected function parseUrl($markdown)
{
    return;
}