Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

jacoblee53/Draft

Repository files navigation

Draft

Online markdown editor

Features

  1. Support Standard Markdown and GFM (GitHub Flavored Markdown);
  2. Import and Export to pdf\md\html;
  3. Real-time Preview, Table generate, Code block, search\replace\go to line, Read only, Code syntax highlighting... ;
  4. Support [TOC] (table of content);
  5. OCR (baidu-sdk) and Image link generate (SMMS);
  6. Support KaTex and Twemoji;
  7. Keyboard Shortcuts;

Demo

Let's Try Now!

Usage

# 克隆到本地
$ git clone https://github.com/oddisland/Draft 

# 安装依赖
$ npm install

# 开启热更新服务器,TOC\OCR功能无法使用 -> localhost:8080
$ npm run build

# 打包压缩项目,并输出生产模式文件
$ npm run build:prod

# 打包压缩文件,启用node express,所有功能正常使用 -> localhost:8080
$ npm start

Dependents

Todo

  • Support Flowchart and Sequence Diagram;
  • Auto save;

License

The MIT License.