Skip to content

基于electron的markdown编辑器,使用mavonEditor实现markdown输入和预览效果

Notifications You must be signed in to change notification settings

houyujiang/markdown-editor

Repository files navigation

markdown-editor

基于electron的markdown编辑器,使用mavonEditor实现效果

界面

编辑区1

编辑区2

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:9080
npm run dev

# build electron application for production
npm run build


# lint all JS/Vue component files in `src/`
npm run lint

第三方插件

  1. markdown编辑插件:https://github.com/hinesboy/mavonEditor
  2. markdown to pdf: https://github.com/houyujiang/markdown-pdf
  3. elementUi

mavonEditor使用记录

  1. 获取当前输入框中的文本内容:
this.$refs.md.d_value
  1. 获取当前输入框中的html:
this.$refs.md.d_renderhtml格式

markdown link 内容提示

  • 标题周围应该空一行

  • 标题末尾不带标点符号

  • 代码块标记代码语言可以指定显示高亮


This project was generated with electron-vue@8fae476 using vue-cli. Documentation about the original structure can be found here.

About

基于electron的markdown编辑器,使用mavonEditor实现markdown输入和预览效果

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published