Dimer is an open source project and CMS to help you publish your documentation online.
We believe every project/product is incomplete without documentation.
We want to help you publish user facing documentation, without worrying about tools or code
to write.
Dimer Tree React
Converts dimer markdown AST node to HTML using React
If you are using React to create Dimer theme, then it will be best to use this low level function to convert all markdown AST nodes into HTML.
Installation
npm i dimer-tree-react # Yarn yarn add dimer-tree-react
Usage
After installation, import the module and use it as follows.
Component { return <div> $ </div> }
Returning custom components
You can also return custom elements or components for certain AST nodes.
Component { if nodetag === 'div' && nodepropsclassName === 'tabs' return <Tabs node=node /> } { return <div> $ </div> }
Change log
The change log can be found in the CHANGELOG.md file.
Contributing
Everyone is welcome to contribute. Please take a moment to review the contributing guidelines.
Authors & License
thetutlage and contributors.
MIT License, see the included MIT file.