Markdown
View code
Breaking Change with v3.5.0! This version has been upgraded to
markdown-it.js
from commonmark.js
Use
The following text was written in Markdown and converted to HTML using the <rg-markdown> component.
HTML
<rg-markdown>__Advertisement :)__
- __[pica](https://nodeca.github.io/pica/demo/)__ - high quality and fast image
resize in browser.
- __[babelfish](https://github.com/nodeca/babelfish/)__ - developer friendly
i18n with plurals support and easy syntax.
You will like those projects!
---
# h1 Heading 8-)
## h2 Heading
### h3 Heading
#### h4 Heading
##### h5 Heading
###### h6 Heading
## Horizontal Rules
___
---
***
## Typographic replacements
Enable typographer option to see result.
(c) (C) (r) (R) (tm) (TM) (p) (P) +-
</rg-markdown>
JavaScript
var tags = riot.mount('rg-markdown') ;
tags[0].on('loaded', 'alert('Your markdown text has been loaded!'));