PHP Class parsedown\Parsedown

Exibir arquivo Open project: gotcms/gotcms Class Usage Examples

Public Methods

Method Description
instance ( $name = 'default' ) # Static
parse ( $text ) #
setBreaksEnabled ( $breaksEnabled ) # Enables GFM line breaks.
set_breaks_enabled ( $breaks_enabled ) For backwards compatibility before PSR-2 naming.

Private Methods

Method Description
compile ( array $blocks )
findBlocks ( array $lines, $blockContext = null ) # Private
parseLine ( $text, $markers = [" ", '![', '&', '*', '<', '[', '\', '_', '`', 'http', '~~'] )

Method Details

instance() static public method

# Static
static public instance ( $name = 'default' )

parse() public method

#
public parse ( $text )

setBreaksEnabled() public method

# Enables GFM line breaks.
public setBreaksEnabled ( $breaksEnabled )

set_breaks_enabled() public method

For backwards compatibility before PSR-2 naming.
Deprecation: Use setBreaksEnabled instead.
public set_breaks_enabled ( $breaks_enabled )