Giter Site home page Giter Site logo

zhouyongtao / editor.md Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pandao/editor.md

0.0 2.0 0.0 4.07 MB

A simple online markdown editor.

Home Page: https://pandao.github.io/editor.md/

License: MIT License

JavaScript 58.79% CSS 18.22% HTML 21.59% PHP 1.40%

editor.md's Introduction

Editor.md

Editor.md is the open source online markdown editor, based on CodeMirror & jQuery & Marked.

Features

  • Support Standard Markdown and GFM(GitHub Flavored Markdown);
  • Full-featured: Real-time Preview, Image (cross-domain) upload, Preformatted text/Code blocks/Tables insert, Code fold, Search replace, Read only, Themes, Multi-languages, L18n, HTML entities, Code syntax highlighting...;
  • Markdown Extras : Support ToC (Table of Contents), Emoji, Task lists, @Links...;
  • Compatible with all major browsers (IE8+), compatible Zepto.js and iPad;
  • Support identification, interpretation, fliter of the HTML tags;
  • Support TeX (LaTeX expressions, Based on KaTeX), Flowchart and Sequence Diagram of Markdown extended syntax;
  • Support AMD/CMD (Require.js & Sea.js) Module Loader, and Custom/define editor plugins;

README & Examples (English)


Editor.md 是一个基于CodeMirror、jQuery 和 Marked 构建的 Markdown 在线编辑器。

editormd-screenshot

主要特性

在线演示 (Examples)

https://pandao.github.io/editor.md/examples/index.html

下载和安装 (Download & install)

通过 Github下载安装,或者通过 Bower 安装:

bower install editor.md

使用方法 (Usage)

HTML:

<link rel="stylesheet" href="editormd.min.css" />
<div id="editormd">
    <textarea style="display:none;">### Hello world!</textarea>
</div>

提示1:如果没有Markdown源内容或者通过Ajax异步加载Markdown源文档等,可以不添加<textarea>,会自动添加;

javascript:

<script src="jquery.min.js"></script>
<script src="editormd.min.js"></script>
<script type="text/javascript">
    $(function() {
        var editor = editormd("editormd", {
            path : "../lib/" // codemirror, marked等依赖的库的路径
        });

        /*
        // or             
        var editor = editormd({
            id   : "editormd",
            path : "../lib/"
        });
        */
    });
</script>

Require.js的使用方法:https://github.com/pandao/editor.md/tree/master/examples/use-requirejs.html

Sea.js的使用方法:https://github.com/pandao/editor.md/tree/master/examples/use-seajs.html

依赖项目及感谢 (Dependents)

Changes

更新日志 Change logs

License

The MIT License.

Copyright (c) 2015 Pandao

editor.md's People

Contributors

pandao avatar kevinma2010 avatar tylerlong avatar fifsky avatar

Watchers

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