GithubHelp home page GithubHelp logo

pangqianjin / react-markdown Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.69 MB

基于react,highlight.js,pubsub-js,markdown-it,antd的markdown文件在线编辑器

Home Page: react-markdown-wheat.vercel.app

License: GNU General Public License v3.0

JavaScript 12.92% HTML 1.85% CSS 85.23%
react highlight-js antd markdown-it pubsub-js create-react-app

react-markdown's Introduction

react-markdown

使用create-react-app创建

基于react,highlight.js,pubsub-js,markdown-it和antd的markdown文件在线编辑器

如何启动

进入根目录下,执行如下命令

yarn install

yarn start

打包

yarn build

运行在你的服务器上

npm install -g serve

serve -s build

支持的功能

  • 拖拽文件到编辑区域来打开
  • 工具栏
    • 下载你编辑的md文档(手机端浏览器不支持)
    • 一键清空所有内容
    • 加粗、斜体、下划线、代码块、注释、插入图片、插入超链接
  • 快捷键
    • ctrl+b 加粗
    • ctrl+i 斜体
    • ctrl+shift+k 代码块
    • ctrl+shift+i插入图片
    • ctrl+z 撤回以变成2s之前的文本
  • 其他语法:使用的是markdown-it这个js库解析,目前只支持它支持的语法🤣

一些效果

刚进入时,空白输入

image

输入一些示例

image image image

react-markdown's People

Contributors

pangqianjin avatar

Watchers

 avatar

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.