Skip to content

Commit

Permalink
Added a markdown reference file and changed the ? button to point to …
Browse files Browse the repository at this point in the history
…it. Removed all references to wmd-editor.com
  • Loading branch information
Twipped committed Feb 28, 2011
1 parent a34f105 commit 0dd8ae0
Show file tree
Hide file tree
Showing 4 changed files with 111 additions and 9 deletions.
102 changes: 102 additions & 0 deletions markdownhelp.html
Original file line number Diff line number Diff line change
@@ -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>
8 changes: 4 additions & 4 deletions wmd.combined.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion wmd.combined.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions wmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down

0 comments on commit 0dd8ae0

Please sign in to comment.