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:

// Basic access
{{ $entry->content }}

Decorator Usage

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

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

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

Methods

@todo Generate methods from @docs

Configuration

@todo Generate config options from class::configuration