Markdown ❺
Embed markdown content, including tables and more.
Usage Notes
Use the <markdown>
element inside of any HTML Embed.
Works in standalone Embeds or as an embed within a rich text block
Works with static rich text blocks, or CMS-bound RTBs
Supports any Markdown that Showdown supports, plus table extensions
Here's an example of an H1 followed by a table;
Markdown "elements"
You can convert a standalone HTML Embed element into a markdown element without needing the <markdown> tag, using a custom attriute;
[wfu-markdown]
Themes
Markdown can be themed by specifying a theme attribute, e.g.;
When unspecified, this will default to default
.
This allows you to target CSS directly on the markdown.
The default theme includes some basic table styling and nothing more.
Custom Themes
When a markdown element is converted to markdown it is wrapped in a DIV with an attribute of theme=theme-name, according to your specified theme or default
.
This can be used in CSS for example;
Getting Started ( NOCODE )
STEP 1 - Add the Library
First, add the library as detailed in Quick Start.
STEP 2 - Apply the custom attributes as desired
See above for details.
Technical Notes & Credits
Uses Showdown.js for the Markdown conversion
In your live site, the markdown elements are initially hidden until they are processed. Users may see an empty space briefly before the markdown conversion happens.
For very large tables ( which this is not suited for ) that may result in a content layout shift.
Last updated