Markdown
Markdown is a text-to-HTML conversion tool for web writers. Markdown allows you to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid HTML.
Markdown is now one of the world's most popular markup languages.
Please note that MDX is also supported in LiveCodes and is documented here.
Demo
Styles
By default, no styes are added. Only HTML output is generated from the Markdown code.
If you want to style the result page similar to GitHub Markdown, you can use github-markdown-css
.
Note that the body needs to have a class="markdown-body"
for the styles to be applied.
document.body.classList.add('markdown-body');
Example:
Language Info
Name
markdown
Aliases
md
, mdown
, mkdn
Extension
.md
Editor
script
Compiler
Version
marked
: v13.0.2
Code Formatting
Using Prettier.
Custom Settings
Custom settings added to the property markdown
are passed as a JSON object to marked.parse
. Please check the documentation for full reference.
Please note that custom settings should be valid JSON (i.e. functions are not allowed).
Example:
{
"markdown": {
"gfm": true,
"breaks": true
}
}
Starter Template
https://livecodes.io/?template=markdown