class Markdown (View source)

Properties

protected $definitions
protected $breaks
protected $escaping
protected $linking
protected $safety
protected $unmarking
protected $markers
protected $attrs
protected $inlines
protected $schemas
protected $types
protected $specials
protected $strongs
protected $emphasis
protected $voids
protected $formattings

Methods

static string
render(string $file)

Render file markdown menjadi html.

static string
parse(string $string)

Parse string markdown menjadi html.

static $this
factory()

Ambil singleton object.

string
translate(string $string)

Ubah string markdown menjadi html.

string
line(string $text, array $nonces = [])

Parse inline markdown.

$this
breaks(bool $enable = true)

Ubah newline menjadi tag HTML '
'.

$this
escaping(bool $enable = true)

Aktifkan escape htmlspecialchars.

$this
linkify(bool $enable = true)

Ubah string URL menjadi link aktif.

$this
safety(bool $enable)

Aktifkan fitur keamanan (basic).

lines(array $parameters)

No description

continuable($type)

No description

completable($type)

No description

block_code($tag, array $attrib = null)

No description

block_code_continue(array $tag, array $attrib)

No description

block_code_complete(array $attrib)

No description

block_comment(array $tag)

No description

block_comment_continue(array $tag, array $attrib)

No description

block_fenced(array $tag)

No description

block_fenced_continue(array $tag, array $attrib)

No description

block_fenced_complete(array $attrib)

No description

block_header(array $tag)

No description

block_listing(array $tag)

No description

block_listing_continue(array $tag, array $attrib)

No description

block_listing_complete(array $attrib)

No description

block_quote(array $tag)

No description

block_quote_continue($tag, array $attrib)

No description

block_rule(array $tag)

No description

block_setext(array $tag, array $attrib = null)

No description

block_markup(array $tag)

No description

block_markup_continue(array $tag, array $attrib)

No description

block_reference(array $tag)

No description

block_table(array $tag, array $attr = null)

No description

block_table_continue(array $tag, array $attrib)

No description

paragraph(array $tag)

No description

inline_code($not)

No description

inline_mailto(array $not)

No description

inline_emphasis(array $not)

No description

inline_escaper(array $not)

No description

inline_image(array $not)

No description

inline_link(array $not)

No description

inline_markup(array $not)

No description

inline_specials(array $not)

No description

inline_strike(array $not)

No description

inline_url(array $not)

No description

inline_scheme(array $not)

No description

unmarked($text)

No description

element(array $elem)

No description

elements(array $elems)

No description

li(array $lines)

No description

sanitize(array $elem)

No description

url_filter(array $elem, $attribute)

No description

static 
escape($text, $quoting = false)

No description

static 
starts($string, $needle)

No description

Details

static string render(string $file)

Render file markdown menjadi html.

Parameters

string $file

Return Value

string

static string parse(string $string)

Parse string markdown menjadi html.

Parameters

string $string

Return Value

string

static $this factory()

Ambil singleton object.

Return Value

$this

string translate(string $string)

Ubah string markdown menjadi html.

Parameters

string $string

Return Value

string

string line(string $text, array $nonces = [])

Parse inline markdown.

Parameters

string $text
array $nonces

Return Value

string

$this breaks(bool $enable = true)

Ubah newline menjadi tag HTML '
'.

Parameters

bool $enable

Return Value

$this

$this escaping(bool $enable = true)

Aktifkan escape htmlspecialchars.

Parameters

bool $enable

Return Value

$this

$this linkify(bool $enable = true)

Ubah string URL menjadi link aktif.

Parameters

bool $enable

Return Value

$this

$this safety(bool $enable)

Aktifkan fitur keamanan (basic).

Parameters

bool $enable

Return Value

$this

protected lines(array $parameters)

No description

Parameters

array $parameters

protected continuable($type)

No description

Parameters

$type

protected completable($type)

No description

Parameters

$type

protected block_code($tag, array $attrib = null)

No description

Parameters

$tag
array $attrib

protected block_code_continue(array $tag, array $attrib)

No description

Parameters

array $tag
array $attrib

protected block_code_complete(array $attrib)

No description

Parameters

array $attrib

protected block_comment(array $tag)

No description

Parameters

array $tag

protected block_comment_continue(array $tag, array $attrib)

No description

Parameters

array $tag
array $attrib

protected block_fenced(array $tag)

No description

Parameters

array $tag

protected block_fenced_continue(array $tag, array $attrib)

No description

Parameters

array $tag
array $attrib

protected block_fenced_complete(array $attrib)

No description

Parameters

array $attrib

protected block_header(array $tag)

No description

Parameters

array $tag

protected block_listing(array $tag)

No description

Parameters

array $tag

protected block_listing_continue(array $tag, array $attrib)

No description

Parameters

array $tag
array $attrib

protected block_listing_complete(array $attrib)

No description

Parameters

array $attrib

protected block_quote(array $tag)

No description

Parameters

array $tag

protected block_quote_continue($tag, array $attrib)

No description

Parameters

$tag
array $attrib

protected block_rule(array $tag)

No description

Parameters

array $tag

protected block_setext(array $tag, array $attrib = null)

No description

Parameters

array $tag
array $attrib

protected block_markup(array $tag)

No description

Parameters

array $tag

protected block_markup_continue(array $tag, array $attrib)

No description

Parameters

array $tag
array $attrib

protected block_reference(array $tag)

No description

Parameters

array $tag

protected block_table(array $tag, array $attr = null)

No description

Parameters

array $tag
array $attr

protected block_table_continue(array $tag, array $attrib)

No description

Parameters

array $tag
array $attrib

protected paragraph(array $tag)

No description

Parameters

array $tag

protected inline_code($not)

No description

Parameters

$not

protected inline_mailto(array $not)

No description

Parameters

array $not

protected inline_emphasis(array $not)

No description

Parameters

array $not

protected inline_escaper(array $not)

No description

Parameters

array $not

protected inline_image(array $not)

No description

Parameters

array $not

No description

Parameters

array $not

protected inline_markup(array $not)

No description

Parameters

array $not

protected inline_specials(array $not)

No description

Parameters

array $not

protected inline_strike(array $not)

No description

Parameters

array $not

protected inline_url(array $not)

No description

Parameters

array $not

protected inline_scheme(array $not)

No description

Parameters

array $not

protected unmarked($text)

No description

Parameters

$text

protected element(array $elem)

No description

Parameters

array $elem

protected elements(array $elems)

No description

Parameters

array $elems

protected li(array $lines)

No description

Parameters

array $lines

protected sanitize(array $elem)

No description

Parameters

array $elem

protected url_filter(array $elem, $attribute)

No description

Parameters

array $elem
$attribute

static protected escape($text, $quoting = false)

No description

Parameters

$text
$quoting

static protected starts($string, $needle)

No description

Parameters

$string
$needle