RedCloth 3.0.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of RedCloth might be problematic. Click here for more details.

@@ -0,0 +1,79 @@
1
+ --- # Bret Pettichord, Thanks.
2
+ in: |-
3
+ * first line
4
+ * second
5
+ line
6
+ * third line
7
+ out: |-
8
+ <ul>
9
+ <li>first line</li>
10
+ <li>second
11
+ line</li>
12
+ <li>third line</li>
13
+ </ul>
14
+ ---
15
+ in: |-
16
+ p. start
17
+
18
+ * one
19
+ and one
20
+ * two
21
+ and two
22
+ * three
23
+
24
+ p. end
25
+ out: |-
26
+ <p>start</p>
27
+ <ul>
28
+ <li>one
29
+ and one</li>
30
+ <li>two
31
+ and two</li>
32
+ <li>three</li>
33
+ </ul>
34
+
35
+ <p>end</p>
36
+ ---
37
+ in: |-
38
+ Funky:
39
+
40
+ * Testing
41
+ *# number
42
+ *##* bullet
43
+ *# number
44
+ *# number
45
+ yeah number
46
+ #* bullet
47
+ *** okay
48
+
49
+ ****# what
50
+
51
+
52
+ out: |-
53
+ <p>Funky:</p>
54
+ <ul>
55
+ <li>Testing
56
+ <ol>
57
+ <li>number
58
+ <ul>
59
+ <li>bullet</li>
60
+ </ul>
61
+ </li>
62
+ <li>number</li>
63
+ <li>number
64
+ yeah number</li>
65
+ <ul>
66
+ <li>bullet
67
+ <ul>
68
+ <li>okay
69
+
70
+ <ol>
71
+ <li>what</li>
72
+ </ul></li>
73
+ </ol></li>
74
+ </ul></li>
75
+ </ul></li>
76
+ </ol>
77
+ ---
78
+ in: "* command run: @time ruby run-tests.rb > toto@"
79
+ out: "<ul>\n\t<li>command run: <code>time ruby run-tests.rb &gt; toto</code></li>\n\t</ul>"
@@ -0,0 +1,214 @@
1
+ in: |
2
+ This is a regular paragraph.
3
+
4
+ <table>
5
+ <tr>
6
+ <td>Foo</td>
7
+ </tr>
8
+ </table>
9
+
10
+ This is another regular paragraph.
11
+ out: |-
12
+ <p>This is a regular paragraph.</p>
13
+
14
+
15
+ <table>
16
+ <tr>
17
+ <td>Foo</td>
18
+ </tr>
19
+ </table>
20
+ <p>This is another regular paragraph.</p>
21
+ ---
22
+ in: '&copy;'
23
+ out: <p>&copy;</p>
24
+ ---
25
+ in: AT&T
26
+ out: <p>AT&#38;T</p>
27
+ ---
28
+ in: 4 < 5
29
+ out: 4 &lt; 5
30
+ ---
31
+ in: |
32
+ This is an H1
33
+ =============
34
+
35
+ This is an H2
36
+ -------------
37
+ out: |-
38
+ <h1>This is an H1</h1>
39
+
40
+ <h2>This is an H2</h2>
41
+ ---
42
+ in: |
43
+ # This is an H1
44
+
45
+ ## This is an H2
46
+
47
+ ###### This is an H6
48
+ out: |-
49
+ <h1>This is an H1</h1>
50
+
51
+ <h2>This is an H2</h2>
52
+
53
+ <h6>This is an H6</h6>
54
+ ---
55
+ in: |
56
+ > This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
57
+ > consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
58
+ > Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
59
+ >
60
+ > Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
61
+ > id sem consectetuer libero luctus adipiscing.
62
+ out: |-
63
+ <blockquote>
64
+ <p>This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
65
+ consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
66
+ Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.</p>
67
+
68
+ <p>Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
69
+ id sem consectetuer libero luctus adipiscing.</p>
70
+
71
+ </blockquote>
72
+ ---
73
+ in: |
74
+ > This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
75
+ consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
76
+ Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
77
+
78
+ > Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
79
+ id sem consectetuer libero luctus adipiscing.
80
+ out: |-
81
+ <blockquote>
82
+ <p>This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
83
+ consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
84
+ Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.</p>
85
+
86
+ <p>Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
87
+ id sem consectetuer libero luctus adipiscing.</p>
88
+
89
+ </blockquote>
90
+ ---
91
+ in: |
92
+ > This is the first level of quoting.
93
+ >
94
+ > > This is nested blockquote.
95
+ >
96
+ > Back to the first level.
97
+ out: |-
98
+ <blockquote>
99
+ <p>This is the first level of quoting.</p>
100
+ <blockquote>
101
+ <p>This is nested blockquote.</p>
102
+
103
+ </blockquote>
104
+
105
+
106
+
107
+ <p>Back to the first level.</p>
108
+
109
+ </blockquote>
110
+ ---
111
+ in: |
112
+ > ## This is a header.
113
+ >
114
+ > 1. This is the first list item.
115
+ > 2. This is the second list item.
116
+ >
117
+ > Here's some example code:
118
+ >
119
+ > return shell_exec("echo $input | $markdown_script");
120
+ out: |-
121
+ <blockquote>
122
+ <h2>This is a header.</h2>
123
+
124
+
125
+
126
+ <p>1. This is the first list item.
127
+ 2. This is the second list item.</p>
128
+
129
+ <p>Here's some example code:
130
+ <code>return shell_exec(\"echo $input | $markdown_script\");</code>
131
+ </p>
132
+
133
+ </blockquote>
134
+ ---
135
+ in: |
136
+ * * *
137
+
138
+ ***
139
+
140
+ *****
141
+
142
+ - - -
143
+
144
+ ---------------------------------------
145
+
146
+ _ _ _
147
+ out: |-
148
+ <hr />
149
+
150
+ <hr />
151
+
152
+ <hr />
153
+
154
+ <hr />
155
+
156
+ <hr />
157
+
158
+ <hr />
159
+ ---
160
+ in: |
161
+ This is [an example](http://example.com/ "Title") inline link.
162
+
163
+ [This link](http://example.net/) has no title attribute.
164
+ out: |-
165
+ <p>This is <a href="http://example.com/" title="Title">an example</a> inline link.</p>
166
+
167
+ <p><a href="http://example.net/">This link</a> has no title attribute.</p>
168
+ ---
169
+ in: See my [About](/about/) page for details.
170
+ out: <p>See my <a href="/about/">About</a> page for details.</p>
171
+ ---
172
+ in: |
173
+ This is [an example][id] reference-style link.
174
+
175
+ This is [an example] [id] reference-style link.
176
+
177
+ [id]: http://example.com/ "Optional Title Here"
178
+ out: |-
179
+ <p>This is <a href="http://example.com/" title="Optional Title Here">an example</a> reference-style link.</p>
180
+
181
+ <p>This is <a href="http://example.com/" title="Optional Title Here">an example</a> reference-style link.</p>
182
+ ---
183
+ in: |
184
+ [Google][]
185
+ [Google]: http://google.com/
186
+ out: <p><a href="http://google.com/">Google</a></p>
187
+ ---
188
+ in: |
189
+ Visit [Daring Fireball][] for more information.
190
+ [Daring Fireball]: http://daringfireball.net/
191
+ out: <p>Visit <a href="http://daringfireball.net/">Daring Fireball</a> for more information.</p>
192
+ ---
193
+ in: |
194
+ I get 10 times more traffic from [Google] [1] than from
195
+ [Yahoo] [2] or [MSN] [3].
196
+
197
+ [1]: http://google.com/ "Google"
198
+ [2]: http://search.yahoo.com/ "Yahoo Search"
199
+ [3]: http://search.msn.com/ "MSN Search"
200
+
201
+ out: |-
202
+ <p>I get 10 times more traffic from <a href="http://google.com/" title="Google">Google</a> than from
203
+ <a href="http://search.yahoo.com/" title="Yahoo Search">Yahoo</a> or <a href="http://search.msn.com/" title="MSN Search">MSN</a>.</p>
204
+ ---
205
+ in: |
206
+ I get 10 times more traffic from [Google][] than from
207
+ [Yahoo][] or [MSN][].
208
+
209
+ [google]: http://google.com/ "Google"
210
+ [yahoo]: http://search.yahoo.com/ "Yahoo Search"
211
+ [msn]: http://search.msn.com/ "MSN Search"
212
+ out: |-
213
+ <p>I get 10 times more traffic from <a href="http://google.com/" title="Google">Google</a> than from
214
+ <a href="http://search.yahoo.com/" title="Yahoo Search">Yahoo</a> or <a href="http://search.msn.com/" title="MSN Search">MSN</a>.</p>
@@ -0,0 +1,64 @@
1
+ --- # Tests from the (Poignant Guide)
2
+ in: >
3
+ h3. False
4
+
5
+
6
+ !<i/blix-neg.gif(Shape of a cat.)!
7
+
8
+
9
+ _The cat Trady Blix. Frozen in emptiness. Immaculate whiskers rigid. Placid
10
+ eyes of lake. Tail of warm icicle. Sponsored by a Very Powerful Pause Button._
11
+
12
+
13
+ The darkness surrounding Blix can be called *negative space*. Hang on to that phrase.
14
+ Let it suggest that the emptiness has a negative connotation. In a similar way,
15
+ @nil@ has a slightly sour note that it whistles.
16
+
17
+
18
+ Generally speaking, everything in Ruby has a positive charge to it. This spark
19
+ flows through strings, numbers, regexps, all of it. Only two keywords wear a
20
+ shady cloak: @nil@ and @false@ draggin us down.
21
+
22
+
23
+ You can test that charge with an @if@ keyword. It looks very much like the
24
+ @do@ blocks we saw in the last chapter, in that both end with an @end@.
25
+
26
+
27
+ <pre>
28
+ if plastic_cup
29
+ print "Plastic cup is on the up 'n' up!"
30
+ end
31
+ </pre>
32
+
33
+
34
+ If @plastic_cup@ contains either @nil@ or @false@, you won't see anything print
35
+ to the screen. They're not on the @if@ guest list. So @if@ isn't going to run
36
+ any of the code it's protecting.
37
+
38
+
39
+ But @nil@ and @false@ need not walk away in shame. They may be of questionable
40
+ character, but @unless@ runs a smaller establishment that caters to the bedraggled.
41
+ The @unless@ keyword has a policy of only allowing those with a negative charge in.
42
+ Who are: @nil@ and @false@.
43
+
44
+
45
+ <pre>
46
+ unless plastic_cup
47
+ print "Plastic cup is on the down low."
48
+ end
49
+ </pre>
50
+
51
+
52
+ You can also use @if@ and @unless@ at the end of a single line of code, if that's
53
+ all that is being protected.
54
+
55
+
56
+ <pre>
57
+ print "Yeah, plastic cup is up again!" if plastic_cup
58
+ print "Hardly. It's down." unless plastic_cup
59
+ </pre>
60
+
61
+
62
+ Now that you've met @false@, I'm sure you can see what's on next.
63
+
64
+ out: "<h3>False</h3>\n\n\t<p style=\"float:left\"><img src=\"i/blix-neg.gif\" title=\"Shape of a cat.\" alt=\"Shape of a cat.\" /></p>\n\n\t<p><em>The cat Trady Blix. Frozen in emptiness. Immaculate whiskers rigid. Placid eyes of lake. Tail of warm icicle. Sponsored by a Very Powerful Pause Button.</em></p>\n\n\t<p>The darkness surrounding Blix can be called <strong>negative space</strong>. Hang on to that phrase. Let it suggest that the emptiness has a negative connotation. In a similar way, <code>nil</code> has a slightly sour note that it whistles.</p>\n\n\t<p>Generally speaking, everything in Ruby has a positive charge to it. This spark flows through strings, numbers, regexps, all of it. Only two keywords wear a shady cloak: <code>nil</code> and <code>false</code> draggin us down.</p>\n\n\t<p>You can test that charge with an <code>if</code> keyword. It looks very much like the <code>do</code> blocks we saw in the last chapter, in that both end with an <code>end</code>.</p>\n\n\n<pre>\n if plastic_cup\n print \"Plastic cup is on the up 'n' up!\" \n end\n</pre>\n\t<p>If <code>plastic_cup</code> contains either <code>nil</code> or <code>false</code>, you won&#8217;t see anything print to the screen. They&#8217;re not on the <code>if</code> guest list. So <code>if</code> isn&#8217;t going to run any of the code it&#8217;s protecting.</p>\n\n\t<p>But <code>nil</code> and <code>false</code> need not walk away in shame. They may be of questionable character, but <code>unless</code> runs a smaller establishment that caters to the bedraggled. The <code>unless</code> keyword has a policy of only allowing those with a negative charge in. Who are: <code>nil</code> and <code>false</code>.</p>\n\n\n<pre>\n unless plastic_cup\n print \"Plastic cup is on the down low.\" \n end\n</pre>\n\t<p>You can also use <code>if</code> and <code>unless</code> at the end of a single line of code, if that&#8217;s all that is being protected.</p>\n\n\n<pre>\n print \"Yeah, plastic cup is up again!\" if plastic_cup\n print \"Hardly. It's down.\" unless plastic_cup\n</pre>\n\t<p>Now that you&#8217;ve met <code>false</code>, I&#8217;m sure you can see what&#8217;s on next.</p>"
@@ -0,0 +1,397 @@
1
+ ---
2
+ in: h1. Header 1
3
+ out: <h1>Header 1</h1>
4
+ ---
5
+ in: h2. Header 2
6
+ out: <h2>Header 2</h2>
7
+ ---
8
+ in: h3. Header 3
9
+ out: <h3>Header 3</h3>
10
+ ---
11
+ in: |-
12
+ Any old text.
13
+
14
+ bq. A block quotation.
15
+
16
+ Any old text.
17
+
18
+ out: |-
19
+ <p>Any old text.</p>
20
+
21
+ <blockquote>
22
+ <p>A block quotation.</p>
23
+ </blockquote>
24
+
25
+ <p>Any old text.</p>
26
+
27
+ ---
28
+ in: This is covered elsewhere[1].
29
+ out: <p>This is covered elsewhere<sup><a href="#fn1">1</a></sup>.</p>
30
+ ---
31
+ in: fn1. Down here, in fact.
32
+ out: <p id="fn1"><sup>1</sup> Down here, in fact.</p>
33
+ ---
34
+ in: |-
35
+ # A first item
36
+ # A second item
37
+ # A third item
38
+ # A fourth item
39
+ out: |-
40
+ <ol>
41
+ <li>A first item</li>
42
+ <li>A second item</li>
43
+ <li>A third item</li>
44
+ <li>A fourth item</li>
45
+ </ol>
46
+ ---
47
+ in: |-
48
+ * A first item
49
+ * A second item
50
+ * A third item
51
+ * A fourth item
52
+
53
+ out: |-
54
+ <ul>
55
+ <li>A first item</li>
56
+ <li>A second item</li>
57
+ <li>A third item</li>
58
+ <li>A fourth item</li>
59
+ </ul>
60
+
61
+ ---
62
+ in: _a phrase_
63
+ out: <p><em>a phrase</em></p>
64
+ ---
65
+ in: __a phrase__
66
+ out: <p><i>a phrase</i></p>
67
+ ---
68
+ in: '*a phrase*'
69
+ out: <p><strong>a phrase</strong></p>
70
+ ---
71
+ in: '**a phrase**'
72
+ out: <p><b>a phrase</b></p>
73
+ ---
74
+ in: Nabokov's ??Pnin??
75
+ out: <p>Nabokov&#8217;s <cite>Pnin</cite></p>
76
+ ---
77
+ in: -a phrase-
78
+ out: <p><del>a phrase</del></p>
79
+ ---
80
+ in: +a phrase+
81
+ out: <p><ins>a phrase</ins></p>
82
+ ---
83
+ in: ^a phrase^
84
+ out: <p><sup>a phrase</sup></p>
85
+ ---
86
+ in: ~a phrase~
87
+ out: <p><sub>a phrase</sub></p>
88
+ # ---
89
+ # in: %(caps)SPAN%
90
+ # out: <p><span class="caps">SPAN</span>
91
+ ---
92
+ in: %{color:red}red%
93
+ out: <p><span style="color:red;">red</span></p>
94
+ ---
95
+ in: %[fr]rouge%
96
+ out: <p><span lang="fr">rouge</span></p>
97
+ ---
98
+ in: _(big)red_
99
+ out: <p><em class="big">red</em></p>
100
+ ---
101
+ in: p(bob). A paragraph
102
+ out: <p class="bob">A paragraph</p>
103
+ ---
104
+ in: p{color:#ddd}. A paragraph
105
+ out: <p style="color:#ddd;">A paragraph</p>
106
+ ---
107
+ in: p[fr]. A paragraph
108
+ out: <p lang="fr">A paragraph</p>
109
+ ---
110
+ in: h2()>. right-aligned header2, indented 1em both side
111
+ out: <h2 style="padding-left:1em;padding-right:1em;text-align:right;">right-aligned header2, indented 1em both side</h2>
112
+ ---
113
+ in: h3=. centered header
114
+ out: <h3 style="text-align:center;">centered header</h3>
115
+ ---
116
+ in: '!>/image.gif! right-aligned image'
117
+ out: <p style="float:right"><img src="/image.gif" alt="" /> right-aligned image</p>
118
+ ---
119
+ in: p[no]{color:red}. A Norse of a different colour.
120
+ out: <p style="color:red;" lang="no">A Norse of a different colour.</p>
121
+ ---
122
+ in: |-
123
+ |This|is|a|simple|table|
124
+ |This|is|a|simple|row|
125
+ out: |-
126
+ <table>
127
+ <tr>
128
+ <td>This</td>
129
+ <td>is</td>
130
+ <td>a</td>
131
+ <td>simple</td>
132
+ <td>table</td>
133
+ </tr>
134
+ <tr>
135
+ <td>This</td>
136
+ <td>is</td>
137
+ <td>a</td>
138
+ <td>simple</td>
139
+ <td>row</td>
140
+ </tr>
141
+ </table>
142
+ ---
143
+ in: |-
144
+ table{border:1px solid black}.
145
+ |This|is|a|row|
146
+ |This|is|a|row|
147
+ out: |-
148
+ <table style="border:1px solid black;">
149
+ <tr>
150
+ <td>This</td>
151
+ <td>is</td>
152
+ <td>a</td>
153
+ <td>row</td>
154
+ </tr>
155
+ <tr>
156
+ <td>This</td>
157
+ <td>is</td>
158
+ <td>a</td>
159
+ <td>row</td>
160
+ </tr>
161
+ </table>
162
+ ---
163
+ in: '{background:#ddd}. |This|is|a|row|'
164
+ out: |-
165
+ <table>
166
+ <tr style="background:#ddd;">
167
+ <td>This</td>
168
+ <td>is</td>
169
+ <td>a</td>
170
+ <td>row</td>
171
+ </tr>
172
+ </table>
173
+ ---
174
+ in: |-
175
+ |{background:#ddd}. Cell with gray background|
176
+ |\2. Cell spanning 2 columns|
177
+ |/3. Cell spanning 3 rows|
178
+ |>. Right-aligned cell|
179
+ out: |-
180
+ <table>
181
+ <tr>
182
+ <td style="background:#ddd;">Cell with gray background</td>
183
+ </tr>
184
+ <tr>
185
+ <td colspan="2">Cell spanning 2 columns</td>
186
+ </tr>
187
+ <tr>
188
+ <td rowspan="3">Cell spanning 3 rows</td>
189
+ </tr>
190
+ <tr>
191
+ <td style="text-align:right;">Right-aligned cell</td>
192
+ </tr>
193
+ </table>
194
+ # ---
195
+ # in: |-
196
+ # This is a "link":bob to Bob's website.
197
+ #
198
+ # [bob]http://itsbob.com/index.html
199
+ ---
200
+ in: ACLU(American Civil Liberties Union)
201
+ out: <p><acronym title="American Civil Liberties Union">ACLU</acronym></p>
202
+ ---
203
+ in: |-
204
+ h2{color:green}. This is a title
205
+
206
+ h3. This is a subhead
207
+
208
+ p{color:red}. This is some text of dubious character. Isn't the use of "quotes" just lazy writing -- and theft of 'intellectual property' besides? I think the time has come to see a block quote.
209
+
210
+ bq[fr]. This is a block quote. I'll admit it's not the most exciting block quote ever devised.
211
+
212
+ Simple list:
213
+
214
+ #{color:blue} one
215
+ # two
216
+ # three
217
+
218
+ Multi-level list:
219
+
220
+ # one
221
+ ## aye
222
+ ## bee
223
+ ## see
224
+ # two
225
+ ## x
226
+ ## y
227
+ # three
228
+
229
+ Mixed list:
230
+
231
+ * Point one
232
+ * Point two
233
+ ## Step 1
234
+ ## Step 2
235
+ ## Step 3
236
+ * Point three
237
+ ** Sub point 1
238
+ ** Sub point 2
239
+
240
+
241
+ Well, that went well. How about we insert an <a href="/" title="watch out">old-fashioned hypertext link</a>? Will the quote marks in the tags get messed up? No!
242
+
243
+ "This is a link (optional title)":http://www.textism.com
244
+
245
+ table{border:1px solid black}.
246
+ |_. this|_. is|_. a|_. header|
247
+ <{background:gray}. |\2. this is|{background:red;width:200px}. a|^<>{height:200px}. row|
248
+ |this|<>{padding:10px}. is|^. another|(bob#bob). row|
249
+
250
+ An image:
251
+
252
+ !/common/textist.gif(optional alt text)!
253
+
254
+ # Librarians rule
255
+ # Yes they do
256
+ # But you knew that
257
+
258
+ Some more text of dubious character. Here is a noisome string of CAPITAL letters. Here is something we want to _emphasize_.
259
+ That was a linebreak. And something to indicate *strength*. Of course I could use <em>my own HTML tags</em> if I <strong>felt</strong> like it.
260
+
261
+ h3. Coding
262
+
263
+ This <code>is some code, "isn't it"</code>. Watch those quote marks! Now for some preformatted text:
264
+
265
+ <pre>
266
+ <code>
267
+ $text = str_replace("<p>%::%</p>","",$text);
268
+ $text = str_replace("%::%</p>","",$text);
269
+ $text = str_replace("%::%","",$text);
270
+
271
+ </code>
272
+ </pre>
273
+
274
+ This isn't code.
275
+
276
+
277
+ So you see, my friends:
278
+
279
+ * The time is now
280
+ * The time is not later
281
+ * The time is not yesterday
282
+ * We must act
283
+
284
+ out: |-
285
+ <h2 style="color:green;">This is a title</h2>
286
+
287
+ <h3>This is a subhead</h3>
288
+
289
+ <p style="color:red;">This is some text of dubious character. Isn&#8217;t the use of &#8220;quotes&#8221; just lazy writing&#8212;and theft of &#8216;intellectual property&#8217; besides? I think the time has come to see a block quote.</p>
290
+
291
+ <blockquote>
292
+ <p lang="fr">This is a block quote. I&#8217;ll admit it&#8217;s not the most exciting block quote ever devised.</p>
293
+ </blockquote>
294
+
295
+ <p>Simple list:</p>
296
+ <ol style="color:blue;">
297
+ <li>one</li>
298
+ <li>two</li>
299
+ <li>three</li>
300
+ </ol>
301
+
302
+ <p>Multi-level list:</p>
303
+ <ol>
304
+ <li>one
305
+ <ol>
306
+ <li>aye</li>
307
+ <li>bee</li>
308
+ <li>see</li>
309
+ </ol>
310
+ </li>
311
+ <li>two
312
+ <ol>
313
+ <li>x</li>
314
+ <li>y</li>
315
+ </ol>
316
+ </li>
317
+ <li>three</li>
318
+ </ol>
319
+
320
+ <p>Mixed list:</p>
321
+ <ul>
322
+ <li>Point one</li>
323
+ <li>Point two
324
+ <ol>
325
+ <li>Step 1</li>
326
+ <li>Step 2</li>
327
+ <li>Step 3</li>
328
+ </ol>
329
+ </li>
330
+ <li>Point three
331
+ <ul>
332
+ <li>Sub point 1</li>
333
+ <li>Sub point 2</li>
334
+ </ul></li>
335
+ </ul>
336
+
337
+ <p>Well, that went well. How about we insert an <a href="/" title="watch out">old-fashioned hypertext link</a>? Will the quote marks in the tags get messed up? No!</p>
338
+
339
+ <p><a href="http://www.textism.com" title="optional title">This is a link</a></p>
340
+
341
+ <table style="border:1px solid black;">
342
+ <tr>
343
+ <th>this</th>
344
+ <th>is</th>
345
+ <th>a</th>
346
+ <th>header</th>
347
+ </tr>
348
+ <tr style="background:gray;text-align:left;">
349
+ <td colspan="2">this is</td>
350
+ <td style="background:red;width:200px;">a</td>
351
+ <td style="vertical-align:top;height:200px;text-align:justify;">row</td>
352
+ </tr>
353
+ <tr>
354
+ <td>this</td>
355
+ <td style="padding:10px;text-align:justify;">is</td>
356
+ <td style="vertical-align:top;">another</td>
357
+ <td class="bob" id="bob">row</td>
358
+ </tr>
359
+ </table>
360
+
361
+
362
+
363
+ <p>An image:</p>
364
+
365
+ <p><img src="/common/textist.gif" title="optional alt text" alt="optional alt text" /></p>
366
+ <ol>
367
+ <li>Librarians rule</li>
368
+ <li>Yes they do</li>
369
+ <li>But you knew that</li>
370
+ </ol>
371
+
372
+ <p>Some more text of dubious character. Here is a noisome string of <span class="caps">CAPITAL</span> letters. Here is something we want to <em>emphasize</em>.
373
+ That was a linebreak. And something to indicate <strong>strength</strong>. Of course I could use <em>my own <span class="caps">HTML</span> tags</em> if I <strong>felt</strong> like it.</p>
374
+
375
+ <h3>Coding</h3>
376
+
377
+ <p>This <code>is some code, "isn't it"</code>. Watch those quote marks! Now for some preformatted text:</p>
378
+
379
+
380
+ <pre>
381
+ <code>
382
+ $text = str_replace("&lt;p&gt;%::%&lt;/p&gt;","",$text);
383
+ $text = str_replace("%::%&lt;/p&gt;","",$text);
384
+ $text = str_replace("%::%","",$text);
385
+
386
+ </code>
387
+ </pre>
388
+ <p>This isn&#8217;t code.</p>
389
+
390
+ <p>So you see, my friends:</p>
391
+ <ul>
392
+ <li>The time is now</li>
393
+ <li>The time is not later</li>
394
+ <li>The time is not yesterday</li>
395
+ <li>We must act</li>
396
+ </ul>
397
+