Markdown 編輯器:Editor.md
A simple online markdown editor.
Editor.md 是一個基于jQuery和CodeMirror構建的在線Markdown文檔編輯器。
主要特性
-
支持Markdown標準和Github風格;
-
支持實時預覽和多語言語法高亮;
-
支持AMD/CMD模塊化加載(支持Require.js & Sea.js);
-
兼容主流的瀏覽器(IE8+),且支持iPad等平板設備;
-
支持流程圖 flowchart 和時序圖 sequenceDiagram;
在線演示
https://pandao.github.io/editor.md/examples/index.html
下載和安裝
通過Github下載安裝,或者通過bower安裝:
bower install editor.md
使用方法
HTML:
<div class="editormd" id="test-editormd"> <script type="text/markdown">###Hello world!</script> </div>
javascript:
<link rel="stylesheet" href="../dist/css/editormd.css" /> <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/' }); }); }); </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
依賴項目及感謝
更新日志
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!