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

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

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/