Git Product home page Git Product logo

mdeditor's Introduction

mdeditor

在浏览器中运行的markdown编辑器,分为python后端和html/js前端,真正跨平台。 可以编辑时实时预览、或编译成静态html,最终显示效果是一样的。

特性

  • 编辑时即时预览
  • 编译成静态html,和预览一样的效果
  • 跨平台:Linux/Windows/MacOS
  • 程序代码语法高亮
  • markdown语法高亮

安装和配置

依赖关系

  • 需安装python的Pygments库,否则没有代码语法高亮

下载代码

git clone https://github.com/zzmfish/mdeditor.git
cd mdeditor
git submodule init
git submodule update

配置

编辑config.py,配置这几项:

  • md_dir: markdown源文件存储位置
  • html_dir: markdown编译成静态html的存储位置
  • port:端口

使用方法

编辑markdown文件

  • 启动程序
python main.py
  • 打开浏览器,输入http://127.0.0.1:8889

编译html

make

每个markdown文件编译成一个html文件,另外生成一个index.html。

mdeditor's People

Contributors

zzmfish avatar pandazxx avatar

Stargazers

 avatar Tonny avatar  avatar

Watchers

James Cloos avatar  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.