\Kaloa\Renderer\Markdown\FilterParseSpanFilter

Process character escapes, code spans, and inline HTML in one shot.

Summary

Methods
Properties
Constants
run()
__construct()
No public properties found
No constants found
handleSpanToken()
makeCodeSpan()
$rem
$hasher
$no_markup
N/A
No private methods found
No private properties found
N/A

Properties

$no_markup

$no_markup : boolean

Type

boolean

Methods

run()

run(  $text) : string

Take the string $str and parse it into tokens, hashing embeded HTML, escaped characters and handling code spans.

Parameters

$text

Returns

string

handleSpanToken()

handleSpanToken(string  $token, string  $str) : string

Handle $token provided by parseSpan by determining its nature and returning the corresponding value that should replace it.

Parameters

string $token
string $str

Returns

string

makeCodeSpan()

makeCodeSpan(\Kaloa\Renderer\Markdown\Filter\type  $code) : \Kaloa\Renderer\Markdown\Filter\type

Create a code span markup for $code. Called from handleSpanToken.

Parameters

\Kaloa\Renderer\Markdown\Filter\type $code

Returns

\Kaloa\Renderer\Markdown\Filter\type