https://github.com/bestguy/ractive-markdown
A markdown mustache helper for Ractive, using Markdown-it
https://github.com/bestguy/ractive-markdown
Last synced: about 1 year ago
JSON representation
A markdown mustache helper for Ractive, using Markdown-it
- Host: GitHub
- URL: https://github.com/bestguy/ractive-markdown
- Owner: bestguy
- License: mit
- Created: 2016-05-29T18:06:25.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-05-29T18:07:44.000Z (about 10 years ago)
- Last Synced: 2025-02-14T02:51:22.465Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Ractive Markdown helper
A markdown mustache helper for [Ractive](http://www.ractivejs.org/),
using [Markdown-it](https://github.com/markdown-it/markdown-it)
Also supports emoji via [Markdown-it-emoji](https://github.com/markdown-it/markdown-it-emoji)
----
## Usage
_Note: this helper is a self-registering CommonJS module, and in the browser
requires a module system such as Webpack or Browserify._
npm install ractive-markdown
### ES5:
```js
var Ractive = require('ractive');
require('ractive-markdown');
```
### ES6/2015+:
```js
import Ractive from 'ractive';
import 'ractive-markdown';
```
### In Ractive template
(Requires triple brackets to show unescaped HTML):
{{{md('# Hello _World!_')}}}
#### Outputs:
# Hello _World!_