\MarkdownFormatter
A Wiki formatter for Markdown syntax
- Author: Marcus Nyeholt <marcus@silverstripe.com.au>
- License: BSD License (http://silverstripe.org/BSD-License)
Synopsis
class MarkdownFormatter
extends SimpleWikiFormatter
{
- // methods
- public void getFormatterName()
- public MarkItUpField getEditingField()
- public void formatRaw()
- public void getHelpUrl()
- // Inherited methods from SimpleWikiFormatter
- public void analyseSavedContent()
- public array parseNewPagesFrom()
- public void updateCMSFields()
- public abstract void getFormatterName()
- public abstract void getEditingField()
- public void formatContent()
- public abstract void formatRaw()
- public abstract void getHelpUrl()
Hierarchy
Extends
Methods
public
- formatRaw()
- getEditingField() — Note that we explicity pass the dataobject content here - if we don't, then the form calls the Content() method of the CONTROLLER that the form is associated with, which means that it returns the parsed content!
- getFormatterName()
- getHelpUrl()
Inherited from SimpleWikiFormatter
public
- analyseSavedContent() — Analyse content just after it's saved. This is useful for creating new pages etc where referenced by particular formatting
- formatContent() — Format the content for output
- formatRaw()
- getEditingField() — Get the CMS field for editing this kind of element
- getFormatterName() — Gets the type of this formatter as a string
- getHelpUrl() — Get a URL that links to a page showing relevant help functionality
- parseNewPagesFrom() — Separated into a separate method for testing
- updateCMSFields() — Allows a formatter to change the fields available in the backend for a wiki page.