class Formatter
Properties
protected | $configurationCallbacks | |||
protected | $parsingCallbacks | |||
protected | $unparsingCallbacks | |||
protected | $renderingCallbacks |
Methods
string
render(string $xml, mixed $context = null, ServerRequestInterface $request = null)
No description
mixed
getComponent(string $name)
<p>Get a TextFormatter component ("renderer" or "parser" or "js").</p>
string
convert(string|null $content)
<p>Converts a plain text string (with or without Markdown) to it's HTML equivalent.</p>
Details
at
line 28
__construct(Repository $cache, string $cacheDir)
at
line 37
void
addConfigurationCallback(callable $callback)
at
line 45
void
addParsingCallback(callable $callback)
at
line 53
void
addUnparsingCallback(callable $callback)
at
line 61
void
addRenderingCallback(callable $callback)
at
line 84
string
render(string $xml, mixed $context = null, ServerRequestInterface $request = null)
at
line 97
string
unparse(string $xml, mixed $context = null)
at
line 109
void
flush()
<p>Flush the cache so that the formatter components are regenerated.</p>
at
line 114
protected Configurator
getConfigurator()
at
line 143
protected void
configureExternalLinks(Configurator $configurator)
at
line 162
protected mixed
getComponent(string $name)
<p>Get a TextFormatter component ("renderer" or "parser" or "js").</p>
at
line 171
protected Parser
getParser(mixed $context = null)
at
line 180
protected Renderer
getRenderer()
at
line 194
string
getJs()
<p>Get the formatter JavaScript.</p>
at
line 199
protected string
configureDefaultsOnLinks(string $xml)
at
line 214
string
convert(string|null $content)
<p>Converts a plain text string (with or without Markdown) to it's HTML equivalent.</p>