From 3692b311f9e6273da4e880b2bca9dec86185b65f Mon Sep 17 00:00:00 2001 From: Will Fife Date: Fri, 11 Oct 2019 14:09:09 -0700 Subject: [PATCH] prettify.js has moved from code.google.com to github prettify.js has moved from code.google.com to github, this changes the link to the new location. --- README.md | 82 +++++++++++++++++++++++++++---------------------------- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/README.md b/README.md index 74221419..6b947128 100644 --- a/README.md +++ b/README.md @@ -40,8 +40,8 @@ - 支持 AMD / CMD 模块化加载(支持 [Require.js](https://pandao.github.io/editor.md/examples/use-requirejs.html) & [Sea.js](https://pandao.github.io/editor.md/examples/use-seajs.html)),并且支持[自定义扩展插件](https://pandao.github.io/editor.md/examples/define-plugin.html); - 兼容主流的浏览器(IE8+)和 [Zepto.js](https://pandao.github.io/editor.md/examples/use-zepto.html),且支持 iPad 等平板设备; -#### Download & install - +#### Download & install + Download: [Github download](https://github.com/pandao/editor.md/archive/master.zip) @@ -58,13 +58,13 @@ Bower install : bower install editor.md ``` -#### Usages - +#### Usages + ##### Create a Markdown editor ```html -
+
@@ -72,9 +72,9 @@ bower install editor.md -``` - -> See the full example: [http://editor.md.ipandao.com/examples/html-preview-markdown-to-html.html](http://editor.md.ipandao.com/examples/html-preview-markdown-to-html.html) - -##### HTML to Markdown? - + }); + }); + +``` + +> See the full example: [http://editor.md.ipandao.com/examples/html-preview-markdown-to-html.html](http://editor.md.ipandao.com/examples/html-preview-markdown-to-html.html) + +##### HTML to Markdown? + Sorry, Editor.md not support HTML to Markdown parsing, Maybe In the future. #### Examples -[https://pandao.github.io/editor.md/examples/index.html](https://pandao.github.io/editor.md/examples/index.html) - -#### Options - -Editor.md options and default values: - -```javascript +[https://pandao.github.io/editor.md/examples/index.html](https://pandao.github.io/editor.md/examples/index.html) + +#### Options + +Editor.md options and default values: + +```javascript { mode : "gfm", // gfm or markdown name : "", // Form element name for post @@ -229,18 +229,18 @@ Editor.md options and default values: name : "zh-cn", description : "开源在线Markdown编辑器
Open source online Markdown editor.", tocTitle : "目录", - toolbar : { - //... - }, - button: { - //... + toolbar : { + //... + }, + button: { + //... }, - dialog : { - //... - } - //... - } -} + dialog : { + //... + } + //... + } +} ``` #### Dependents @@ -251,7 +251,7 @@ Editor.md options and default values: - [FontAwesome](http://fontawesome.io/ "FontAwesome") - [github-markdown.css](https://github.com/sindresorhus/github-markdown-css "github-markdown.css") - [KaTeX](http://khan.github.io/KaTeX/ "KaTeX") -- [prettify.js](http://code.google.com/p/google-code-prettify/ "prettify.js") +- [prettify.js](https://github.com/google/code-prettify "prettify.js") - [Rephael.js](http://raphaeljs.com/ "Rephael.js") - [flowchart.js](http://adrai.github.io/flowchart.js/ "flowchart.js") - [sequence-diagram.js](http://bramp.github.io/js-sequence-diagrams/ "sequence-diagram.js")