Git Product home page Git Product logo

draft's Introduction

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.

draft's People

Contributors

jacoblee53 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

draft's Issues

RTL support

Some languages like hebrew and arabic are written from right to left and it would be nice if your editor supported writing from right to left.
Usually it is done using special unicode characters or using html paragraphs (link)

XSS

Most web-based markdown engines support regular html formatting, and this one is no exception.

Simply writting <script>alert("xss")</script> allows to show the XSS. Of course more complex payloads works as well.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.