Awesome
deku-remarkable
react-remarkable
clone in Deku. A little different though.
Usage
npm i --save deku-remarkable
in JSX
var Markdown = deku.element.bind(null, (require 'deku-remarkable'))
var options = {
breaks: true
}
var Page = {
render: function(component setState) {
return <div class="layout-page">
<Markdown source={"test **Markdown**"} options={options} />
</div>
}
}
in CirruScript:
var
Markdown $ deku.element.bind null $ require :deku-remarkable
var options $ {}
:breaks true
var Page $ deku.element.bind null $ {}
:render $ \ (component setState)
return $ div ({} (:class :layout-page))
Markdown $ {} (:source ":test **Markdown**")
Markdown null
div null ":raw DOM"
Options
source
:string
Markdown stringoptions
:object
, See Remarkable options
Usage
- Development
npm i
gulp html
webpack-dev-server --hot
- Production
gulp buld
gulp rsync
License
MIT