WebbuildersGroup\DeploymentNotes\Model\FieldType\Markdown
Synopsis
class Markdown
extends DBText
implements
Flushable
{
- // members
- private static array $casting = ;
- private static string $escape_type = 'xml';
- protected boolean $parsedHTML = false;
- // methods
- public {string} AsHTML()
- public {string} getMarkdown()
- public {string} forTemplate()
- public static void flush()
Hierarchy
Extends
- SilverStripe\ORM\FieldType\DBText
Implements
- SilverStripe\Core\Flushable
Members
private
- $casting
- $escape_type
protected
- $parsedHTML
Methods
public
- AsHTML() — Checks cache to see if the contents of this field have already been parsed, if they haven't then Parsdown is used to render the markdown
- flush() — Flushes the caches of markdown
- forTemplate() — Renders the field used in the template
- getMarkdown() — Gets the raw markdown