Skip to content

Latest commit

 

History

History
52 lines (45 loc) · 1.52 KB

markdown.md

File metadata and controls

52 lines (45 loc) · 1.52 KB
title overview image id options
Markdown
Write and preview Markdown with the help of formatting buttons and other neat things.
/assets/fieldtypes/markdown.png
607cfe62-7239-461b-8f55-8e7a312c2d5d
name type description
container
string
An asset container ID. When specified, the fieldtype will allow the user to add assets from the specified container.
name type description
folder
string
The folder (relative to the asset container) to use when choosing assets. If left blank, the root folder of the container will be used.
name type description
restrict_assets
bool
If set to `true`, navigation within the asset browser dialog will be disabled, and you will be restricted to the container and folder specified.
name type description
cheatsheet
bool
If set to `true`, display a link to open a Markdown cheatsheet from the specified field.

Data Structure {#data-structure}

The data will be saved exactly as displayed in the field - as Markdown.

Templating {#templating}

Since the data is a plain string, you will need to parse it as Markdown.

my_markdown_field: 'This is **bold**'
{{ my_markdown_field }}
{{ my_markdown_field | markdown }}
This is **bold**
This is <strong>bold</strong>

The content field will automatically parsed as Markdown if you are using md files. You do not need to use the markdown modifier. Simply using {{ content }} will do!