dotpub / editor.md

A simple online markdown editor.

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Editor.md

Editor.md is an 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="../dist/css/editormd.css" />
<div id="test-editormd">
    <textarea style="display:none;">###Hello world!</textarea>
</div>

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

javascript:

<script src="../lib/jquery.min.js"></script>
<script src="../src/js/editormd.js"></script>
<script type="text/javascript">
    $(function() {
        var testEditor = editormd("test-editormd", {
            path : '../lib/' // codemirror、marked等依赖的库的路径
        });
    });
</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

About

A simple online markdown editor.

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

License:MIT License


Languages

Language:JavaScript 60.6%Language:HTML 21.7%Language:CSS 16.1%Language:PHP 1.6%