Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mvc-works/deku-remarkable

react-remarkable clone in Deku
https://github.com/mvc-works/deku-remarkable

Last synced: about 2 months ago
JSON representation

react-remarkable clone in Deku

Awesome Lists containing this project

README

        

deku-remarkable
----

[`react-remarkable`][rm] clone in Deku. A little different though.

[rm]: https://github.com/acdlite/react-remarkable

### Usage

```
npm i --save deku-remarkable
```

in JSX

```jsx
var Markdown = deku.element.bind(null, (require 'deku-remarkable'))
var options = {
breaks: true
}

var Page = {
render: function(component setState) {
return




}
}
```

in CirruScript:

```cirru
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 string
* `options`: `object`, [See Remarkable options][options]

[options]: https://github.com/jonschlinkert/remarkable#options

### Usage

* Development

```text
npm i
gulp html
webpack-dev-server --hot
```

* Production

```text
gulp buld
gulp rsync
```

### License

MIT