Markdown Type

Overview

The markdown field type stores markdown formatted text.

// streams/example.json
"fields": {
    "content": {
        "type": "markdown"
    }
}

Data Structure

{
    "content": "An **example** string."
}

Basic value access displays the unparsed value:

@verbatim// Basic access
{{ $entry->content }}
@endverbatim

Decorator Usage

To get anything out of your stored value you will need to expand it.

@verbatim// Parsed value
{{ $entry->content()->parse() }}

// Parsed and rendered value
{{ $entry->content()->render($payload) }}
@endverbatim

Methods

@todo Generate methods from @docs

Configuration

@todo Generate config options from class::configuration