0.1.0 • Published 1 year ago
a-markdown v0.1.0
a-markdown
Example:
Easy create markdown and graph HTMLELment:
import VanillaMarkdown from "vanilla-markdown";
const element = VanillaMarkdown(`
# Hello
> markdown
`);
document.body.append(element);
In React
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 <div ref={ref} />;
}
Only in html example
Can Use mermaid print graph:
Detail read: http://mermaid-js.github.io/mermaid/
0.1.0
1 year ago