A tool that converts markdown(.md
) file to single, offline html(.html
) file.
- Portability: Include everything in only one
.html
file - Convenience: No internet access
- Powerful markdown compatibility (use marked as its parser and compiler)
- Table of contents preview (TOC will be created at the left side)
- TOC automatic numbering (no need of manual nubmering. When already numbered, it won't renumbering if the number is correct)
- Image to base64 (find all
localized
images embedded to markdown and convert them to base64 encoded data) - LaTeX support (use KaTeX, all font files have converted into base64 encoded data)
- PlantUML support (convert uml to encoded
<img>
links or useplantuml.jar
to generate.svg
files) - mermaid support
- flowchart support
# 1:
git clone https://github.com/chengpengzhao/md2html
# 2: edit plantuml.jar path in package.json
# 3:
npm install
# 4:
npm run build
# or run ./install.sh, then add sripts in bashrc to ~/.bashrc
# 5: add environment to PATH
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
- v2.0.0 initial version (forked and modified from tocmd.npm v1.1.5)
Copyright (c) 2021, cpZhao. (MIT License)