PHP Class Yosymfony\Spress\Converter\ParsedownConverter

Author: Victor Pueras ([email protected])
Inheritance: implements Yosymfony\Spress\Core\ContentManager\Converter\ConverterInterface
Mostrar archivo Open project: spress/spress

Public Methods

Method Description
__construct ( array $supportedExtension ) Constructor.
convert ( string $input ) : string Convert the input data.
getOutExtension ( $extension ) : string The extension of filename result (without dot). E.g: html.
getPriority ( ) : integer Get the converter priority.
matches ( string $extension ) : boolean If file's extension is support by converter.

Method Details

__construct() public method

Constructor.
public __construct ( array $supportedExtension )
$supportedExtension array File extesion supported by the converter. Extension without dot

convert() public method

Convert the input data.
public convert ( string $input ) : string
$input string The raw content without Front-matter
return string

getOutExtension() public method

The extension of filename result (without dot). E.g: html.
public getOutExtension ( $extension ) : string
return string

getPriority() public method

Get the converter priority.
public getPriority ( ) : integer
return integer

matches() public method

If file's extension is support by converter.
public matches ( string $extension ) : boolean
$extension string Extension without dot
return boolean