Home

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

Usage

npm i
gulp html
webpack-dev-server --hot
gulp buld
gulp rsync

License

MIT