๐ A pluggable markdown editor/viewer built with marked.
BitMD is being developed using bun as the package manager and vite as the package bundler which's cool :)
- Support for multiple frameworks, themes and locales.
- Compatible with existing marked extensions
For VanillaJS,
new bitmd.BitMD({
target: document.querySelector("#app"),
props: {
value: "# Heading",
plugins: [
bitmd_plugin_katex(),
bitmd_plugin_highlight(),
]
}
});
Check out examples/vanilla for the full code snippet.
Here are plugins or bindings finished or being planned.
- plugin-gfm - GitHub flavored markdown
- plugin-image - Image upload and insertion
- plugin-katex - LaTeX math formulas
- plugin-highlight - Code highlighting
- plugin-mermaid - Mermaid graghs and charts
- react - React binding of BitMD
- vue - Vue binding of BitMD
To develop, make sure you have bun installed on your device.
git clone https://github.com/mivinci/bitmd.git
cd bitmd
bun i
BitMD is MIT licensed.
Have fun :)