Markup languages

Files and assets

Markup languages

Paste Markdown, MJML, BBCode, Textile, wiki markup, AMP, a table (CSV) or plain text into an HTML block and it becomes HTML you can see and edit on the canvas. Nothing to turn on.

Where it works#

In the HTML block's markup box, pasted on the canvas, and when you load a file with Replace with a file(.md, .markdown, .mjml, .textile, .wiki, .bbcode, .csv, .tsv, .txt). The language is found from what you paste; a file name is only a hint. A note under the box says what it was converted from. HTML stays as it is, and plain words you type by hand are not changed.

What is understood#

PropertyControlsDefault
MarkdownHeadings, bold, italic, links, images, lists, tables, task lists, code, quotes, rulesGitHub style, so a README pastes as it reads (badges too)
MJMLmj-section, mj-column (with widths), mj-text, mj-button, mj-image, mj-divider, mj-spacer, mj-social, mj-table, mj-raw, mj-attributesWritten as plain HTML, using MJML's own defaults
AMP for EmailThe page, with amp-img, accordions and the AMP stylesScripts and the boilerplate that hides the page are removed, as in a client without AMP
BBCode[b] [i] [u] [s] [url] [img] [quote] [list] [size] [color] [center] [code] [table]A tag that is not closed or not known stays as text
Textileh1. to h6., bq., bc., lists, tables, bold, italic, links, imagesWritten the usual Textile way
Wiki markupHeadings with =, bold and italic with quotes, [[links]], [url label], lists, tables, rulesLike MediaWiki
CSV and TSVComma, tab, semicolon or pipe separated rowsThe first row is the header
Plain textAnything elseParagraphs, line breaks, links

What you get#

Plain HTML with email styles on it (heading sizes, spacing, list markers), saved in the block. You edit it the way you edit any HTML block, and the text toolbar (bold, italic, underline, strike, subscript, superscript, link, emoji) works on the selection. Merge tags such as {{first_name}} are kept.

The Markup block#

The palette has a Markup tile. It is an HTML block that keeps the markup you wrote (Markdown, MJML ...) next to the HTML made from it. Choose the language or let it be found, write or paste the markup, or upload a file; once there is markup the button reads Replace with a file, and replacing asks first. Keep as HTML only drops the markup and keeps the HTML. If you edit the text on the canvas and later change the markup, you are asked before those edits are replaced.

Files in other blocks#

The Text block and the Heading block have a From a file section with the same upload and replace button. A Markdown, wiki, BBCode, HTML or text file becomes the text, with its bold, italic, links and lists; a heading takes the first heading or line of the file. Tables and page layout belong in an HTML or Markup block. In Import an email, the HTML box and the file picker understand the same languages.

The result is made safe: scripts, event handlers and javascript: links are removed, and links and pictures only keep addresses a mail client can use. A language is converted once, so what you send is HTML, not the original markup.