editor demo: Demo
js render page Demo
php render page Demo
npm install smartmd
<head>
<link rel="stylesheet" href="dist/smartmd.min.css">
<script src="dist/smartmd.min.js"></script>
</head>
var editor = new Smartmd({
el: "#editor",
height: "400px"
});
# install reference
npm install smartmd
# build for development
npm run dev
# build for production
npm run build
- Markdown syntax parse by Markdown-It and it's plugins
- LaTeX mathematical expressions using KaTeX
- Diagrams and flowcharts using Mermaid
- Live preview
- Emoji
- Images upload (need server)
welcome repo bug reports, feature requests or optimization method.