🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

markdown-editor-reactjs

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markdown-editor-reactjs

A makrdown editor for react.js

latest
npmnpm
Version
1.1.5
Version published
Weekly downloads
24
500%
Maintainers
1
Weekly downloads
 
Created
Source

基于React的markdown编辑器组件

若有bug或好的建议,欢迎加我微信:Lpyexplore333或者在github上提pr

安装

# npm
npm i markdown-editor-reactjs --save

# yarn
yarn add markdown-editor-reactjs -D

例子

import MarkdownEdit from 'markdown-editor-reactjs'


function App() {
    
    return (
        <App>
            <MarkdownEdit />
        </App>
    )
}

快捷键

windowsmac功能
tabtab缩进4个字符(支持多行)
shift + tabshift + tab删除缩进的4个字符(支持多行)
ctrl + zcommand + z返回上一步
ctrl + ycommand + y返回下一步
ctrl + bcommand + b加粗
ctrl + icommand + i斜体
ctrl + ucommand + u删除线
ctrl + lcommand + l链接
ctrl + ocommand + o有序列表
ctrl + qcommand + q引用(mac下失效)
ctrl + 1command + 1一级标题
ctrl + 2command + 2二级标题
ctrl + 3command + 3三级标题
ctrl + 4command + 4四级标题
ctrl + 5command + 5五级标题
ctrl + 6command + 6六级标题
ctrl + alt + tcommand + option + t表格
ctrl + alt + ccommand + option + c代码块
ctrl + alt + vcommand + option + v行内代码
ctrl + alt + lcommand + option + l图片链接格式
ctrl + alt + ucommand + option + u无序列表

代码高亮主题

目前支持的代码高亮主题有:

  • github
  • railscasts(Default)
  • androidstudio
  • dracula
  • atom-one-dark
  • atom-one-light
  • monokai-sublime
  • tomorrow
  • solarized-dark
  • solarized-light
  • olor-brewer
  • zenburn
  • agate

markdown主题

目前支持的markdown主题有:

  • github
  • maize(Default)

其它功能

  • 支持一键导出/导入 md格式的文件
  • ...正在努力开发中

License

MIT

Copyright (c) 2021-present, zero2one

Keywords

markdown

FAQs

Package last updated on 23 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts