Axllent\Gfmarkdown\FieldTypes\Markdown
Synopsis
class Markdown
extends DBText
{
- // members
- private static array $casting = ;
- private static string $escape_type = 'xml';
- // methods
- public string asHTML()
- public string forTemplate()
Hierarchy
Extends
- SilverStripe\ORM\FieldType\DBText
Members
private
- $casting
—
array
Use a casting object for a field. - $escape_type
—
string
The escape type for this field when inserted into a template - either "xml" or "raw".
Methods
public
- asHTML() — Render markdown as HTML using Parsedown
- forTemplate() — Renders the field used in the template