aboutsummaryrefslogtreecommitdiff
path: root/imports/codemirror/mode/markdown/index.html
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-01-27 12:05:17 -0800
committerJose Antonio Marquez2012-01-27 12:05:17 -0800
commit3a754133dbc138390503341fd2e9beba3e43aa4b (patch)
treecdeae7d7dd9a30d7b4fab5afb7efad68d4ec7508 /imports/codemirror/mode/markdown/index.html
parentb89a7ee8b956c96a1dcee995ea840feddc5d4b27 (diff)
downloadninja-3a754133dbc138390503341fd2e9beba3e43aa4b.tar.gz
Merged old FileIO
Diffstat (limited to 'imports/codemirror/mode/markdown/index.html')
-rwxr-xr-ximports/codemirror/mode/markdown/index.html339
1 files changed, 339 insertions, 0 deletions
diff --git a/imports/codemirror/mode/markdown/index.html b/imports/codemirror/mode/markdown/index.html
new file mode 100755
index 00000000..3a60c03f
--- /dev/null
+++ b/imports/codemirror/mode/markdown/index.html
@@ -0,0 +1,339 @@
1<!doctype html>
2<html>
3 <head>
4 <title>CodeMirror: Markdown mode</title>
5 <link rel="stylesheet" href="../../lib/codemirror.css">
6 <script src="../../lib/codemirror.js"></script>
7 <script src="../xml/xml.js"></script>
8 <script src="markdown.js"></script>
9 <link rel="stylesheet" href="markdown.css">
10 <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
11 <link rel="stylesheet" href="../../doc/docs.css">
12 </head>
13 <body>
14 <h1>CodeMirror: Markdown mode</h1>
15
16<!-- source: http://daringfireball.net/projects/markdown/basics.text -->
17<form><textarea id="code" name="code">
18Markdown: Basics
19================
20
21&lt;ul id="ProjectSubmenu"&gt;
22 &lt;li&gt;&lt;a href="/projects/markdown/" title="Markdown Project Page"&gt;Main&lt;/a&gt;&lt;/li&gt;
23 &lt;li&gt;&lt;a class="selected" title="Markdown Basics"&gt;Basics&lt;/a&gt;&lt;/li&gt;
24 &lt;li&gt;&lt;a href="/projects/markdown/syntax" title="Markdown Syntax Documentation"&gt;Syntax&lt;/a&gt;&lt;/li&gt;
25 &lt;li&gt;&lt;a href="/projects/markdown/license" title="Pricing and License Information"&gt;License&lt;/a&gt;&lt;/li&gt;
26 &lt;li&gt;&lt;a href="/projects/markdown/dingus" title="Online Markdown Web Form"&gt;Dingus&lt;/a&gt;&lt;/li&gt;
27&lt;/ul&gt;
28
29
30Getting the Gist of Markdown's Formatting Syntax
31------------------------------------------------
32
33This page offers a brief overview of what it's like to use Markdown.
34The [syntax page] [s] provides complete, detailed documentation for
35every feature, but Markdown should be very easy to pick up simply by
36looking at a few examples of it in action. The examples on this page
37are written in a before/after style, showing example syntax and the
38HTML output produced by Markdown.
39
40It's also helpful to simply try Markdown out; the [Dingus] [d] is a
41web application that allows you type your own Markdown-formatted text
42and translate it to XHTML.
43
44**Note:** This document is itself written using Markdown; you
45can [see the source for it by adding '.text' to the URL] [src].
46
47 [s]: /projects/markdown/syntax "Markdown Syntax"
48 [d]: /projects/markdown/dingus "Markdown Dingus"
49 [src]: /projects/markdown/basics.text
50
51
52## Paragraphs, Headers, Blockquotes ##
53
54A paragraph is simply one or more consecutive lines of text, separated
55by one or more blank lines. (A blank line is any line that looks like
56a blank line -- a line containing nothing but spaces or tabs is
57considered blank.) Normal paragraphs should not be indented with
58spaces or tabs.
59
60Markdown offers two styles of headers: *Setext* and *atx*.
61Setext-style headers for `&lt;h1&gt;` and `&lt;h2&gt;` are created by
62"underlining" with equal signs (`=`) and hyphens (`-`), respectively.
63To create an atx-style header, you put 1-6 hash marks (`#`) at the
64beginning of the line -- the number of hashes equals the resulting
65HTML header level.
66
67Blockquotes are indicated using email-style '`&gt;`' angle brackets.
68
69Markdown:
70
71 A First Level Header
72 ====================
73
74 A Second Level Header
75 ---------------------
76
77 Now is the time for all good men to come to
78 the aid of their country. This is just a
79 regular paragraph.
80
81 The quick brown fox jumped over the lazy
82 dog's back.
83
84 ### Header 3
85
86 &gt; This is a blockquote.
87 &gt;
88 &gt; This is the second paragraph in the blockquote.
89 &gt;
90 &gt; ## This is an H2 in a blockquote
91
92
93Output:
94
95 &lt;h1&gt;A First Level Header&lt;/h1&gt;
96
97 &lt;h2&gt;A Second Level Header&lt;/h2&gt;
98
99 &lt;p&gt;Now is the time for all good men to come to
100 the aid of their country. This is just a
101 regular paragraph.&lt;/p&gt;
102
103 &lt;p&gt;The quick brown fox jumped over the lazy
104 dog's back.&lt;/p&gt;
105
106 &lt;h3&gt;Header 3&lt;/h3&gt;
107
108 &lt;blockquote&gt;
109 &lt;p&gt;This is a blockquote.&lt;/p&gt;
110
111 &lt;p&gt;This is the second paragraph in the blockquote.&lt;/p&gt;
112
113 &lt;h2&gt;This is an H2 in a blockquote&lt;/h2&gt;
114 &lt;/blockquote&gt;
115
116
117
118### Phrase Emphasis ###
119
120Markdown uses asterisks and underscores to indicate spans of emphasis.
121
122Markdown:
123
124 Some of these words *are emphasized*.
125 Some of these words _are emphasized also_.
126
127 Use two asterisks for **strong emphasis**.
128 Or, if you prefer, __use two underscores instead__.
129
130Output:
131
132 &lt;p&gt;Some of these words &lt;em&gt;are emphasized&lt;/em&gt;.
133 Some of these words &lt;em&gt;are emphasized also&lt;/em&gt;.&lt;/p&gt;
134
135 &lt;p&gt;Use two asterisks for &lt;strong&gt;strong emphasis&lt;/strong&gt;.
136 Or, if you prefer, &lt;strong&gt;use two underscores instead&lt;/strong&gt;.&lt;/p&gt;
137
138
139
140## Lists ##
141
142Unordered (bulleted) lists use asterisks, pluses, and hyphens (`*`,
143`+`, and `-`) as list markers. These three markers are
144interchangable; this:
145
146 * Candy.
147 * Gum.
148 * Booze.
149
150this:
151
152 + Candy.
153 + Gum.
154 + Booze.
155
156and this:
157
158 - Candy.
159 - Gum.
160 - Booze.
161
162all produce the same output:
163
164 &lt;ul&gt;
165 &lt;li&gt;Candy.&lt;/li&gt;
166 &lt;li&gt;Gum.&lt;/li&gt;
167 &lt;li&gt;Booze.&lt;/li&gt;
168 &lt;/ul&gt;
169
170Ordered (numbered) lists use regular numbers, followed by periods, as
171list markers:
172
173 1. Red
174 2. Green
175 3. Blue
176
177Output:
178
179 &lt;ol&gt;
180 &lt;li&gt;Red&lt;/li&gt;
181 &lt;li&gt;Green&lt;/li&gt;
182 &lt;li&gt;Blue&lt;/li&gt;
183 &lt;/ol&gt;
184
185If you put blank lines between items, you'll get `&lt;p&gt;` tags for the
186list item text. You can create multi-paragraph list items by indenting
187the paragraphs by 4 spaces or 1 tab:
188
189 * A list item.
190
191 With multiple paragraphs.
192
193 * Another item in the list.
194
195Output:
196
197 &lt;ul&gt;
198 &lt;li&gt;&lt;p&gt;A list item.&lt;/p&gt;
199 &lt;p&gt;With multiple paragraphs.&lt;/p&gt;&lt;/li&gt;
200 &lt;li&gt;&lt;p&gt;Another item in the list.&lt;/p&gt;&lt;/li&gt;
201 &lt;/ul&gt;
202
203
204
205### Links ###
206
207Markdown supports two styles for creating links: *inline* and
208*reference*. With both styles, you use square brackets to delimit the
209text you want to turn into a link.
210
211Inline-style links use parentheses immediately after the link text.
212For example:
213
214 This is an [example link](http://example.com/).
215
216Output:
217
218 &lt;p&gt;This is an &lt;a href="http://example.com/"&gt;
219 example link&lt;/a&gt;.&lt;/p&gt;
220
221Optionally, you may include a title attribute in the parentheses:
222
223