Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added a markdown reference file and changed the ? button to point to …

…it. Removed all references to wmd-editor.com
  • Loading branch information...
commit 0dd8ae00172e5044d3d2e91a911e4766f6a72612 1 parent a34f105
@ChiperSoft authored
View
102 markdownhelp.html
@@ -0,0 +1,102 @@
+<!DOCTYPE HTML>
+<html lang="ru-RU">
+<head>
+ <meta charset="UTF-8">
+ <title>Markdown Help</title>
+ <style type="text/css" media="screen">
+ body {font-size:12px;}
+ table {background:white;font-size:11px;border-collapse:collapse;}
+ table thead td {background-color: #ffff99; text-align: center;}
+ table td {border:1px solid silver;padding:5px;vertical-align:middle;}
+ table .spaces {background-color:#c0c0c0}
+
+ </style>
+</head>
+<body>
+
+<h1 style="text-align:center;font-size:20px">Markdown Syntax Help</h1>
+<table style="margin:0px auto;width:700px">
+ <thead>
+ <tr>
+ <td><em>Description</em></td>
+ <td><em>Example:</em></td>
+ <td><em>Creates:</em></td>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>Text surrounded by asterisks or underscores will be made italic</td>
+ <td>*italics*</td>
+ <td><em>italics</em></td>
+ </tr>
+ <tr>
+ <td>Text surrounded by double asterisks will be bold</td>
+ <td>**bold**</td>
+ <td><b>bold</b></td>
+ </tr>
+ <tr>
+ <td>To create a hyperlink, surround the text you want to be the link with brackets followed by the URL in parenthesis.</td>
+ <td><nobr>[linked text](http://example.com)</nobr></td>
+ <td><a href="http://example.com">linked text</a></td>
+ </tr>
+ <tr>
+ <td rowspan="2">A line of text starting with a pound symbol will become a heading. There are six levels of heading which you can reach by adding more pound signs.</td>
+ <td>#heading 1</td>
+ <td><h1><nobr>heading 1</nobr></h1></td>
+ </tr>
+ <tr>
+ <td>##heading 2</td>
+ <td><h2>heading 2</h2></td>
+ </tr>
+ <tr>
+ <td rowspan="2">You can also create a header by following it with two or more equal signs or hyphens.</td>
+ <td>heading 1<br>===========</td>
+ <td><h1><nobr>heading 1</nobr></h1></td>
+ </tr>
+ <tr>
+ <td>heading 2<br>-----------</td>
+ <td><h2>heading 2</h2></td>
+ </tr>
+ <tr>
+ <td>A series of lines beginning with hyphens will create an unordered list.</td>
+ <td>
+ - item 1<br>
+ - item 2<br>
+ - item 3
+ </td>
+ <td><ul>
+ <li>item 1</li>
+ <li>item 2</li>
+ <li>item 3</li>
+ </ul></td>
+ </tr>
+ <tr>
+ <td>A series of lines beginning with numbers followed by a period will create an ordered list.</td>
+ <td>
+ 1. item 1<br>
+ 2. item 2<br>
+ 3. item 3
+ </td>
+ <td><ol>
+ <li>item 1</li>
+ <li>item 2</li>
+ <li>item 3</li>
+ </ol></td>
+ </tr>
+ <tr>
+ <td>A line started with a greater-then symbol will identify that text as being quoted from someone else.
+ <td>&gt; quoted text</td>
+ <td><blockquote>quoted text</blockquote></td>
+ </tr>
+ <tr>
+ <td>Lines starting with four spaces are treated as preformatted text and will display without wrapping.</td>
+ <td>
+ <span class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</span>if 1 * 2 &lt; 3:<br>
+ <span class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>print "hello, world!"<br>
+ </td>
+ <td><pre>if 1 * 2 &lt; 3:<br> print "hello, world!"</pre></td>
+ </tr>
+ </tbody>
+</table>
+</body>
+</html>
View
8 wmd.combined.js
@@ -21,8 +21,8 @@
// The text that appears on the upper part of the dialog box when
// entering links.
- imageDialogText: "<p style='margin-top: 0px'><b>Enter the image URL.</b></p>" + "<p>You can also add a title, which will be displayed as a tool tip.</p>" + "<p>Example:<br />http://wmd-editor.com/images/cloud1.jpg \"Optional title\"</p>",
- linkDialogText: "<p style='margin-top: 0px'><b>Enter the web address.</b></p>" + "<p>You can also add a title, which will be displayed as a tool tip.</p>" + "<p>Example:<br />http://wmd-editor.com/ \"Optional title\"</p>",
+ imageDialogText: "<p style='margin-top: 0px'><b>Enter the image URL.</b></p>" + "<p>You can also add a title, which will be displayed as a tool tip.</p>" + "<p>Example:<br />http://i.imgur.com/1cZl4.jpg \"Optional title\"</p>",
+ linkDialogText: "<p style='margin-top: 0px'><b>Enter the web address.</b></p>" + "<p>You can also add a title, which will be displayed as a tool tip.</p>" + "<p>Example:<br />http://www.google.com/ \"Optional title\"</p>",
// The default text that appears in the dialog input box when entering
// links.
@@ -31,8 +31,8 @@
imageDirectory: "images/",
// The link and title for the help button
- helpLink: "http://wmd-editor.com/",
- helpHoverTitle: "WMD website",
+ helpLink: "/wmd/markdownhelp.html",
+ helpHoverTitle: "Markdown Syntax",
helpTarget: "_blank",
// Some intervals in ms. These can be adjusted to reduce the control's load.
View
2  wmd.combined.min.js
@@ -1,4 +1,4 @@
-;(function(){WMDEditor=function(options){this.options=WMDEditor.util.extend({},WMDEditor.defaults,options||{});wmdBase(this,this.options);this.startEditor();};window.WMDEditor=WMDEditor;WMDEditor.defaults={version:2.0,output_format:"markdown",lineLength:40,button_bar:"wmd-button-bar",preview:"wmd-preview",output:"wmd-output",input:"wmd-input",imageDialogText:"<p style='margin-top: 0px'><b>Enter the image URL.</b></p>"+"<p>You can also add a title, which will be displayed as a tool tip.</p>"+"<p>Example:<br />http://wmd-editor.com/images/cloud1.jpg \"Optional title\"</p>",linkDialogText:"<p style='margin-top: 0px'><b>Enter the web address.</b></p>"+"<p>You can also add a title, which will be displayed as a tool tip.</p>"+"<p>Example:<br />http://wmd-editor.com/ \"Optional title\"</p>",imageDefaultText:"http://",linkDefaultText:"http://",imageDirectory:"images/",helpLink:"http://wmd-editor.com/",helpHoverTitle:"WMD website",helpTarget:"_blank",previewPollInterval:500,pastePollInterval:100,buttons:"bold italic link blockquote code image ol ul heading hr",tagFilter:{enabled:true,allowedTags:/^(<\/?(b|blockquote|code|del|dd|dl|dt|em|h1|h2|h3|i|kbd|li|ol|p|pre|s|sup|sub|strong|strike|ul)>|<(br|hr)\s?\/?>)$/i,patternLink:/^(<a\shref="(\#\d+|(https?|ftp):\/\/[-A-Za-z0-9+&@#\/%?=~_|!:,.;\(\)]+)"(\stitle="[^"<>]+")?\s?>|<\/a>)$/i,patternImage:/^(<img\ssrc="https?:(\/\/[-A-Za-z0-9+&@#\/%?=~_|!:,.;\(\)]+)"(\swidth="\d{1,3}")?(\sheight="\d{1,3}")?(\salt="[^"<>]*")?(\stitle="[^"<>]*")?\s?\/?>)$/i}};WMDEditor.prototype={getPanels:function(){return{buttonBar:(typeof this.options.button_bar=='string')?document.getElementById(this.options.button_bar):this.options.button_bar,preview:(typeof this.options.preview=='string')?document.getElementById(this.options.preview):this.options.preview,output:(typeof this.options.output=='string')?document.getElementById(this.options.output):this.options.output,input:(typeof this.options.input=='string')?document.getElementById(this.options.input):this.options.input};},startEditor:function(){this.panels=this.getPanels();this.previewMgr=new PreviewManager(this);edit=new this.editor(this.previewMgr.refresh);this.previewMgr.refresh(true);}};var util={isVisible:function(elem){return elem.offsetWidth>0||elem.offsetHeight>0;},addEvent:function(elem,event,listener){if(elem.attachEvent){elem.attachEvent("on"+event,listener);}
+;(function(){WMDEditor=function(options){this.options=WMDEditor.util.extend({},WMDEditor.defaults,options||{});wmdBase(this,this.options);this.startEditor();};window.WMDEditor=WMDEditor;WMDEditor.defaults={version:2.0,output_format:"markdown",lineLength:40,button_bar:"wmd-button-bar",preview:"wmd-preview",output:"wmd-output",input:"wmd-input",imageDialogText:"<p style='margin-top: 0px'><b>Enter the image URL.</b></p>"+"<p>You can also add a title, which will be displayed as a tool tip.</p>"+"<p>Example:<br />http://i.imgur.com/1cZl4.jpg \"Optional title\"</p>",linkDialogText:"<p style='margin-top: 0px'><b>Enter the web address.</b></p>"+"<p>You can also add a title, which will be displayed as a tool tip.</p>"+"<p>Example:<br />http://www.google.com/ \"Optional title\"</p>",imageDefaultText:"http://",linkDefaultText:"http://",imageDirectory:"images/",helpLink:"/wmd/markdownhelp.html",helpHoverTitle:"Markdown Syntax",helpTarget:"_blank",previewPollInterval:500,pastePollInterval:100,buttons:"bold italic link blockquote code image ol ul heading hr",tagFilter:{enabled:true,allowedTags:/^(<\/?(b|blockquote|code|del|dd|dl|dt|em|h1|h2|h3|i|kbd|li|ol|p|pre|s|sup|sub|strong|strike|ul)>|<(br|hr)\s?\/?>)$/i,patternLink:/^(<a\shref="(\#\d+|(https?|ftp):\/\/[-A-Za-z0-9+&@#\/%?=~_|!:,.;\(\)]+)"(\stitle="[^"<>]+")?\s?>|<\/a>)$/i,patternImage:/^(<img\ssrc="https?:(\/\/[-A-Za-z0-9+&@#\/%?=~_|!:,.;\(\)]+)"(\swidth="\d{1,3}")?(\sheight="\d{1,3}")?(\salt="[^"<>]*")?(\stitle="[^"<>]*")?\s?\/?>)$/i}};WMDEditor.prototype={getPanels:function(){return{buttonBar:(typeof this.options.button_bar=='string')?document.getElementById(this.options.button_bar):this.options.button_bar,preview:(typeof this.options.preview=='string')?document.getElementById(this.options.preview):this.options.preview,output:(typeof this.options.output=='string')?document.getElementById(this.options.output):this.options.output,input:(typeof this.options.input=='string')?document.getElementById(this.options.input):this.options.input};},startEditor:function(){this.panels=this.getPanels();this.previewMgr=new PreviewManager(this);edit=new this.editor(this.previewMgr.refresh);this.previewMgr.refresh(true);}};var util={isVisible:function(elem){return elem.offsetWidth>0||elem.offsetHeight>0;},addEvent:function(elem,event,listener){if(elem.attachEvent){elem.attachEvent("on"+event,listener);}
else{elem.addEventListener(event,listener,false);}},removeEvent:function(elem,event,listener){if(elem.detachEvent){elem.detachEvent("on"+event,listener);}
else{elem.removeEventListener(event,listener,false);}},fixEolChars:function(text){text=text.replace(/\r\n/g,"\n");text=text.replace(/\r/g,"\n");return text;},extendRegExp:function(regex,pre,post){if(pre===null||pre===undefined){pre="";}
if(post===null||post===undefined){post="";}
View
8 wmd.js
@@ -21,8 +21,8 @@
// The text that appears on the upper part of the dialog box when
// entering links.
- imageDialogText: "<p style='margin-top: 0px'><b>Enter the image URL.</b></p>" + "<p>You can also add a title, which will be displayed as a tool tip.</p>" + "<p>Example:<br />http://wmd-editor.com/images/cloud1.jpg \"Optional title\"</p>",
- linkDialogText: "<p style='margin-top: 0px'><b>Enter the web address.</b></p>" + "<p>You can also add a title, which will be displayed as a tool tip.</p>" + "<p>Example:<br />http://wmd-editor.com/ \"Optional title\"</p>",
+ imageDialogText: "<p style='margin-top: 0px'><b>Enter the image URL.</b></p>" + "<p>You can also add a title, which will be displayed as a tool tip.</p>" + "<p>Example:<br />http://i.imgur.com/1cZl4.jpg \"Optional title\"</p>",
+ linkDialogText: "<p style='margin-top: 0px'><b>Enter the web address.</b></p>" + "<p>You can also add a title, which will be displayed as a tool tip.</p>" + "<p>Example:<br />http://www.google.com/ \"Optional title\"</p>",
// The default text that appears in the dialog input box when entering
// links.
@@ -31,8 +31,8 @@
imageDirectory: "images/",
// The link and title for the help button
- helpLink: "http://wmd-editor.com/",
- helpHoverTitle: "WMD website",
+ helpLink: "/wmd/markdownhelp.html",
+ helpHoverTitle: "Markdown Syntax",
helpTarget: "_blank",
// Some intervals in ms. These can be adjusted to reduce the control's load.
Please sign in to comment.
Something went wrong with that request. Please try again.