https://github.com/ymzuiku/vanilla-markdown
Easy create markdown and graph
https://github.com/ymzuiku/vanilla-markdown
Last synced: 5 months ago
JSON representation
Easy create markdown and graph
- Host: GitHub
- URL: https://github.com/ymzuiku/vanilla-markdown
- Owner: ymzuiku
- License: mit
- Created: 2020-03-15T09:45:48.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-09-27T05:47:44.000Z (7 months ago)
- Last Synced: 2024-10-05T03:48:42.296Z (7 months ago)
- Language: TypeScript
- Size: 166 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vanilla-markdown
## Example:
Easy create markdown and graph HTMLELment:
```js
import VanillaMarkdown from 'vanilla-markdown'const element = VanillaMarkdown(`
# Hello
> markdown
`)
document.body.append(element);
```## In React
```tsx
import React from 'react'
import VanillaMarkdown from 'vanilla-markdown'const element = VanillaMarkdown(`
# Hello
> markdown
`)function Home(){
const ref = React.useRef();useEffect(()=>{
ref.current.appendChild(element);
}, [])return
}
```## Only in html example
```html
```
## Can Use mermaid print graph:
Detail read: http://mermaid-js.github.io/mermaid/