Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mvc-works/deku-remarkable
- Owner: mvc-works
- Archived: true
- Created: 2015-06-24T16:56:56.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-25T05:01:06.000Z (over 9 years ago)
- Last Synced: 2024-09-21T14:08:48.053Z (4 months ago)
- Language: Cirru
- Size: 117 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-deku - deku-remarkable - remarkable clone in Deku (Components)
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-remarkablevar options $ {}
:breaks truevar 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