PHP Class parsedown\Parsedown

Afficher le fichier Open project: gotcms/gotcms Class Usage Examples

Méthodes publiques

Méthode 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

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

Method Details

instance() static public méthode

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

parse() public méthode

#
public parse ( $text )

setBreaksEnabled() public méthode

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

set_breaks_enabled() public méthode

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