tartan 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. data/History.txt +11 -0
  2. data/Manifest.txt +42 -0
  3. data/{README → README.txt} +12 -8
  4. data/Rakefile +78 -0
  5. data/lib/core_ext/array.rb +9 -10
  6. data/lib/core_ext/module.rb +2 -0
  7. data/lib/{symbolize.rb → core_ext/symbolize.rb} +0 -0
  8. data/lib/core_ext.rb +7 -0
  9. data/lib/{markdown.yml → tartan/markdown/markdown.yml} +67 -25
  10. data/lib/tartan/markdown/rules.rb +11 -0
  11. data/lib/tartan/markdown.rb +14 -0
  12. data/lib/tartan/table/rules.rb +11 -0
  13. data/lib/{table.yml → tartan/table/table.yml} +1 -1
  14. data/lib/tartan/test/base_rules.rb +9 -0
  15. data/lib/{test_base.yml → tartan/test/test_base.yml} +0 -0
  16. data/lib/{wiki-test.rb → tartan/test/wiki-test.rb} +15 -12
  17. data/lib/tartan/wiki_rule.rb +242 -0
  18. data/lib/tartan/wikilink/rules.rb +18 -0
  19. data/lib/{wikilink.yml → tartan/wikilink/wikilink.yml} +4 -2
  20. data/lib/tartan.rb +259 -270
  21. data/test/test-combo.rb +21 -14
  22. data/test/test-combo.yml +17 -0
  23. data/test/test-markdown-and-wikilink.rb +22 -0
  24. data/test/test-markdown-and-wikilink.yml +6 -0
  25. data/test/test-markdown.rb +4 -5
  26. data/test/test-markdown.yml +194 -1
  27. data/test/test-readme-example.rb +6 -5
  28. data/test/test-tables.rb +11 -7
  29. data/test/test-tartan.rb +8 -7
  30. data/test/test-wikilink.rb +13 -9
  31. data/test/test-wikilink.yml +3 -0
  32. metadata +47 -86
  33. data/lib/tartan_markdown.rb +0 -8
  34. data/lib/tartan_markdown_def.rb +0 -7
  35. data/lib/tartan_table_def.rb +0 -7
  36. data/lib/tartan_test_base_def.rb +0 -5
  37. data/lib/tartan_wikilink_def.rb +0 -14
  38. data/lib/wiki_rule.rb +0 -240
  39. data/test/MarkdownTest_1.0/Amps and angle encoding.html +0 -17
  40. data/test/MarkdownTest_1.0/Amps and angle encoding.text +0 -21
  41. data/test/MarkdownTest_1.0/Auto links.html +0 -18
  42. data/test/MarkdownTest_1.0/Auto links.text +0 -13
  43. data/test/MarkdownTest_1.0/Backslash codeescapes.html +0 -68
  44. data/test/MarkdownTest_1.0/Backslash codeescapes.text +0 -68
  45. data/test/MarkdownTest_1.0/Backslash simpleescapes.html +0 -33
  46. data/test/MarkdownTest_1.0/Backslash simpleescapes.text +0 -33
  47. data/test/MarkdownTest_1.0/Blockquotes with code blocks.html +0 -15
  48. data/test/MarkdownTest_1.0/Blockquotes with code blocks.text +0 -11
  49. data/test/MarkdownTest_1.0/Hard-wrapped paragraphs with list-like lines.html +0 -8
  50. data/test/MarkdownTest_1.0/Hard-wrapped paragraphs with list-like lines.text +0 -8
  51. data/test/MarkdownTest_1.0/Horizontal rules.html +0 -71
  52. data/test/MarkdownTest_1.0/Horizontal rules.text +0 -67
  53. data/test/MarkdownTest_1.0/Inline HTML (Advanced).html +0 -14
  54. data/test/MarkdownTest_1.0/Inline HTML (Advanced).text +0 -14
  55. data/test/MarkdownTest_1.0/Inline HTML (Simple).html +0 -72
  56. data/test/MarkdownTest_1.0/Inline HTML (Simple).text +0 -69
  57. data/test/MarkdownTest_1.0/Inline HTML comments.html +0 -13
  58. data/test/MarkdownTest_1.0/Inline HTML comments.text +0 -13
  59. data/test/MarkdownTest_1.0/Links, inline style.html +0 -9
  60. data/test/MarkdownTest_1.0/Links, inline style.text +0 -9
  61. data/test/MarkdownTest_1.0/Links, reference style.html +0 -18
  62. data/test/MarkdownTest_1.0/Links, reference style.text +0 -31
  63. data/test/MarkdownTest_1.0/Literal quotes in titles.html +0 -3
  64. data/test/MarkdownTest_1.0/Literal quotes in titles.text +0 -7
  65. data/test/MarkdownTest_1.0/Markdown Documentation - Basics.html +0 -314
  66. data/test/MarkdownTest_1.0/Markdown Documentation - Basics.out +0 -316
  67. data/test/MarkdownTest_1.0/Markdown Documentation - Basics.text +0 -306
  68. data/test/MarkdownTest_1.0/Markdown Documentation - Syntax.html +0 -942
  69. data/test/MarkdownTest_1.0/Markdown Documentation - Syntax.out +0 -947
  70. data/test/MarkdownTest_1.0/Markdown Documentation - Syntax.text +0 -888
  71. data/test/MarkdownTest_1.0/Nested blockquotes.html +0 -9
  72. data/test/MarkdownTest_1.0/Nested blockquotes.text +0 -5
  73. data/test/MarkdownTest_1.0/Ordered and unordered lists.html +0 -137
  74. data/test/MarkdownTest_1.0/Ordered and unordered lists.text +0 -122
  75. data/test/MarkdownTest_1.0/Strong and em together.html +0 -7
  76. data/test/MarkdownTest_1.0/Strong and em together.text +0 -7
  77. data/test/MarkdownTest_1.0/Tabs.html +0 -25
  78. data/test/MarkdownTest_1.0/Tabs.text +0 -21
  79. data/test/MarkdownTest_1.0/Tidyness.html +0 -8
  80. data/test/MarkdownTest_1.0/Tidyness.text +0 -5
  81. data/test/MarkdownTest_1.0/run-markdown.rb +0 -56
  82. data/test/MarkdownTest_1.0/test-fireball-markdown.rb +0 -177
  83. data/test/MarkdownTest_1.0/testdiff.rb +0 -42
  84. data/test/harder/test-markdown-harder.rb +0 -11
  85. data/test/harder/test-markdown-harder.yml +0 -111
  86. data/test/redcloth/redcloth-markdown-tests.rb +0 -29
  87. data/test/redcloth/redcloth-markdown-tests.yml +0 -218
  88. data/test/test-tartan-markdown.rb +0 -11
@@ -1,14 +0,0 @@
1
- <p>Simple block on one line:</p>
2
-
3
- <div>foo</div>
4
-
5
- <p>And nested without indentation:</p>
6
-
7
- <div>
8
- <div>
9
- <div>
10
- foo
11
- </div>
12
- </div>
13
- <div>bar</div>
14
- </div>
@@ -1,14 +0,0 @@
1
- Simple block on one line:
2
-
3
- <div>foo</div>
4
-
5
- And nested without indentation:
6
-
7
- <div>
8
- <div>
9
- <div>
10
- foo
11
- </div>
12
- </div>
13
- <div>bar</div>
14
- </div>
@@ -1,72 +0,0 @@
1
- <p>Here's a simple block:</p>
2
-
3
- <div>
4
- foo
5
- </div>
6
-
7
- <p>This should be a code block, though:</p>
8
-
9
- <pre><code>&lt;div&gt;
10
- foo
11
- &lt;/div&gt;
12
- </code></pre>
13
-
14
- <p>As should this:</p>
15
-
16
- <pre><code>&lt;div&gt;foo&lt;/div&gt;
17
- </code></pre>
18
-
19
- <p>Now, nested:</p>
20
-
21
- <div>
22
- <div>
23
- <div>
24
- foo
25
- </div>
26
- </div>
27
- </div>
28
-
29
- <p>This should just be an HTML comment:</p>
30
-
31
- <!-- Comment -->
32
-
33
- <p>Multiline:</p>
34
-
35
- <!--
36
- Blah
37
- Blah
38
- -->
39
-
40
- <p>Code block:</p>
41
-
42
- <pre><code>&lt;!-- Comment --&gt;
43
- </code></pre>
44
-
45
- <p>Just plain comment, with trailing spaces on the line:</p>
46
-
47
- <!-- foo -->
48
-
49
- <p>Code:</p>
50
-
51
- <pre><code>&lt;hr /&gt;
52
- </code></pre>
53
-
54
- <p>Hr's:</p>
55
-
56
- <hr>
57
-
58
- <hr/>
59
-
60
- <hr />
61
-
62
- <hr>
63
-
64
- <hr/>
65
-
66
- <hr />
67
-
68
- <hr class="foo" id="bar" />
69
-
70
- <hr class="foo" id="bar"/>
71
-
72
- <hr class="foo" id="bar" >
@@ -1,69 +0,0 @@
1
- Here's a simple block:
2
-
3
- <div>
4
- foo
5
- </div>
6
-
7
- This should be a code block, though:
8
-
9
- <div>
10
- foo
11
- </div>
12
-
13
- As should this:
14
-
15
- <div>foo</div>
16
-
17
- Now, nested:
18
-
19
- <div>
20
- <div>
21
- <div>
22
- foo
23
- </div>
24
- </div>
25
- </div>
26
-
27
- This should just be an HTML comment:
28
-
29
- <!-- Comment -->
30
-
31
- Multiline:
32
-
33
- <!--
34
- Blah
35
- Blah
36
- -->
37
-
38
- Code block:
39
-
40
- <!-- Comment -->
41
-
42
- Just plain comment, with trailing spaces on the line:
43
-
44
- <!-- foo -->
45
-
46
- Code:
47
-
48
- <hr />
49
-
50
- Hr's:
51
-
52
- <hr>
53
-
54
- <hr/>
55
-
56
- <hr />
57
-
58
- <hr>
59
-
60
- <hr/>
61
-
62
- <hr />
63
-
64
- <hr class="foo" id="bar" />
65
-
66
- <hr class="foo" id="bar"/>
67
-
68
- <hr class="foo" id="bar" >
69
-
@@ -1,13 +0,0 @@
1
- <p>Paragraph one.</p>
2
-
3
- <!-- This is a simple comment -->
4
-
5
- <!--
6
- This is another comment.
7
- -->
8
-
9
- <p>Paragraph two.</p>
10
-
11
- <!-- one comment block -- -- with two comments -->
12
-
13
- <p>The end.</p>
@@ -1,13 +0,0 @@
1
- Paragraph one.
2
-
3
- <!-- This is a simple comment -->
4
-
5
- <!--
6
- This is another comment.
7
- -->
8
-
9
- Paragraph two.
10
-
11
- <!-- one comment block -- -- with two comments -->
12
-
13
- The end.
@@ -1,9 +0,0 @@
1
- <p>Just a <a href="/url/">URL</a>.</p>
2
-
3
- <p><a href="/url/" title="title">URL and title</a>.</p>
4
-
5
- <p><a href="/url/" title="title preceded by two spaces">URL and title</a>.</p>
6
-
7
- <p><a href="/url/" title="title preceded by a tab">URL and title</a>.</p>
8
-
9
- <p><a href="">Empty</a>.</p>
@@ -1,9 +0,0 @@
1
- Just a [URL](/url/).
2
-
3
- [URL and title](/url/ "title").
4
-
5
- [URL and title](/url/ "title preceded by two spaces").
6
-
7
- [URL and title](/url/ "title preceded by a tab").
8
-
9
- [Empty]().
@@ -1,18 +0,0 @@
1
- <p>Foo <a href="/url/" title="Title">bar</a>.</p>
2
-
3
- <p>Foo <a href="/url/" title="Title">bar</a>.</p>
4
-
5
- <p>Foo <a href="/url/" title="Title">bar</a>.</p>
6
-
7
- <p>With <a href="/url/">embedded [brackets]</a>.</p>
8
-
9
- <p>Indented <a href="/url">once</a>.</p>
10
-
11
- <p>Indented <a href="/url">twice</a>.</p>
12
-
13
- <p>Indented <a href="/url">thrice</a>.</p>
14
-
15
- <p>Indented [four][] times.</p>
16
-
17
- <pre><code>[four]: /url
18
- </code></pre>
@@ -1,31 +0,0 @@
1
- Foo [bar] [1].
2
-
3
- Foo [bar][1].
4
-
5
- Foo [bar]
6
- [1].
7
-
8
- [1]: /url/ "Title"
9
-
10
-
11
- With [embedded [brackets]] [b].
12
-
13
-
14
- Indented [once][].
15
-
16
- Indented [twice][].
17
-
18
- Indented [thrice][].
19
-
20
- Indented [four][] times.
21
-
22
- [once]: /url
23
-
24
- [twice]: /url
25
-
26
- [thrice]: /url
27
-
28
- [four]: /url
29
-
30
-
31
- [b]: /url/
@@ -1,3 +0,0 @@
1
- <p>Foo <a href="/url/" title="Title with &quot;quotes&quot; inside">bar</a>.</p>
2
-
3
- <p>Foo <a href="/url/" title="Title with &quot;quotes&quot; inside">bar</a>.</p>
@@ -1,7 +0,0 @@
1
- Foo [bar][].
2
-
3
- Foo [bar](/url/ "Title with "quotes" inside").
4
-
5
-
6
- [bar]: /url/ "Title with "quotes" inside"
7
-
@@ -1,314 +0,0 @@
1
- <h1>Markdown: Basics</h1>
2
-
3
- <ul id="ProjectSubmenu">
4
- <li><a href="/projects/markdown/" title="Markdown Project Page">Main</a></li>
5
- <li><a class="selected" title="Markdown Basics">Basics</a></li>
6
- <li><a href="/projects/markdown/syntax" title="Markdown Syntax Documentation">Syntax</a></li>
7
- <li><a href="/projects/markdown/license" title="Pricing and License Information">License</a></li>
8
- <li><a href="/projects/markdown/dingus" title="Online Markdown Web Form">Dingus</a></li>
9
- </ul>
10
-
11
- <h2>Getting the Gist of Markdown's Formatting Syntax</h2>
12
-
13
- <p>This page offers a brief overview of what it's like to use Markdown.
14
- The <a href="/projects/markdown/syntax" title="Markdown Syntax">syntax page</a> provides complete, detailed documentation for
15
- every feature, but Markdown should be very easy to pick up simply by
16
- looking at a few examples of it in action. The examples on this page
17
- are written in a before/after style, showing example syntax and the
18
- HTML output produced by Markdown.</p>
19
-
20
- <p>It's also helpful to simply try Markdown out; the <a href="/projects/markdown/dingus" title="Markdown Dingus">Dingus</a> is a
21
- web application that allows you type your own Markdown-formatted text
22
- and translate it to XHTML.</p>
23
-
24
- <p><strong>Note:</strong> This document is itself written using Markdown; you
25
- can <a href="/projects/markdown/basics.text">see the source for it by adding '.text' to the URL</a>.</p>
26
-
27
- <h2>Paragraphs, Headers, Blockquotes</h2>
28
-
29
- <p>A paragraph is simply one or more consecutive lines of text, separated
30
- by one or more blank lines. (A blank line is any line that looks like a
31
- blank line -- a line containing nothing spaces or tabs is considered
32
- blank.) Normal paragraphs should not be intended with spaces or tabs.</p>
33
-
34
- <p>Markdown offers two styles of headers: <em>Setext</em> and <em>atx</em>.
35
- Setext-style headers for <code>&lt;h1&gt;</code> and <code>&lt;h2&gt;</code> are created by
36
- "underlining" with equal signs (<code>=</code>) and hyphens (<code>-</code>), respectively.
37
- To create an atx-style header, you put 1-6 hash marks (<code>#</code>) at the
38
- beginning of the line -- the number of hashes equals the resulting
39
- HTML header level.</p>
40
-
41
- <p>Blockquotes are indicated using email-style '<code>&gt;</code>' angle brackets.</p>
42
-
43
- <p>Markdown:</p>
44
-
45
- <pre><code>A First Level Header
46
- ====================
47
-
48
- A Second Level Header
49
- ---------------------
50
-
51
- Now is the time for all good men to come to
52
- the aid of their country. This is just a
53
- regular paragraph.
54
-
55
- The quick brown fox jumped over the lazy
56
- dog's back.
57
-
58
- ### Header 3
59
-
60
- &gt; This is a blockquote.
61
- &gt;
62
- &gt; This is the second paragraph in the blockquote.
63
- &gt;
64
- &gt; ## This is an H2 in a blockquote
65
- </code></pre>
66
-
67
- <p>Output:</p>
68
-
69
- <pre><code>&lt;h1&gt;A First Level Header&lt;/h1&gt;
70
-
71
- &lt;h2&gt;A Second Level Header&lt;/h2&gt;
72
-
73
- &lt;p&gt;Now is the time for all good men to come to
74
- the aid of their country. This is just a
75
- regular paragraph.&lt;/p&gt;
76
-
77
- &lt;p&gt;The quick brown fox jumped over the lazy
78
- dog's back.&lt;/p&gt;
79
-
80
- &lt;h3&gt;Header 3&lt;/h3&gt;
81
-
82
- &lt;blockquote&gt;
83
- &lt;p&gt;This is a blockquote.&lt;/p&gt;
84
-
85
- &lt;p&gt;This is the second paragraph in the blockquote.&lt;/p&gt;
86
-
87
- &lt;h2&gt;This is an H2 in a blockquote&lt;/h2&gt;
88
- &lt;/blockquote&gt;
89
- </code></pre>
90
-
91
- <h3>Phrase Emphasis</h3>
92
-
93
- <p>Markdown uses asterisks and underscores to indicate spans of emphasis.</p>
94
-
95
- <p>Markdown:</p>
96
-
97
- <pre><code>Some of these words *are emphasized*.
98
- Some of these words _are emphasized also_.
99
-
100
- Use two asterisks for **strong emphasis**.
101
- Or, if you prefer, __use two underscores instead__.
102
- </code></pre>
103
-
104
- <p>Output:</p>
105
-
106
- <pre><code>&lt;p&gt;Some of these words &lt;em&gt;are emphasized&lt;/em&gt;.
107
- Some of these words &lt;em&gt;are emphasized also&lt;/em&gt;.&lt;/p&gt;
108
-
109
- &lt;p&gt;Use two asterisks for &lt;strong&gt;strong emphasis&lt;/strong&gt;.
110
- Or, if you prefer, &lt;strong&gt;use two underscores instead&lt;/strong&gt;.&lt;/p&gt;
111
- </code></pre>
112
-
113
- <h2>Lists</h2>
114
-
115
- <p>Unordered (bulleted) lists use asterisks, pluses, and hyphens (<code>*</code>,
116
- <code>+</code>, and <code>-</code>) as list markers. These three markers are
117
- interchangable; this:</p>
118
-
119
- <pre><code>* Candy.
120
- * Gum.
121
- * Booze.
122
- </code></pre>
123
-
124
- <p>this:</p>
125
-
126
- <pre><code>+ Candy.
127
- + Gum.
128
- + Booze.
129
- </code></pre>
130
-
131
- <p>and this:</p>
132
-
133
- <pre><code>- Candy.
134
- - Gum.
135
- - Booze.
136
- </code></pre>
137
-
138
- <p>all produce the same output:</p>
139
-
140
- <pre><code>&lt;ul&gt;
141
- &lt;li&gt;Candy.&lt;/li&gt;
142
- &lt;li&gt;Gum.&lt;/li&gt;
143
- &lt;li&gt;Booze.&lt;/li&gt;
144
- &lt;/ul&gt;
145
- </code></pre>
146
-
147
- <p>Ordered (numbered) lists use regular numbers, followed by periods, as
148
- list markers:</p>
149
-
150
- <pre><code>1. Red
151
- 2. Green
152
- 3. Blue
153
- </code></pre>
154
-
155
- <p>Output:</p>
156
-
157
- <pre><code>&lt;ol&gt;
158
- &lt;li&gt;Red&lt;/li&gt;
159
- &lt;li&gt;Green&lt;/li&gt;
160
- &lt;li&gt;Blue&lt;/li&gt;
161
- &lt;/ol&gt;
162
- </code></pre>
163
-
164
- <p>If you put blank lines between items, you'll get <code>&lt;p&gt;</code> tags for the
165
- list item text. You can create multi-paragraph list items by indenting
166
- the paragraphs by 4 spaces or 1 tab:</p>
167
-
168
- <pre><code>* A list item.
169
-
170
- With multiple paragraphs.
171
-
172
- * Another item in the list.
173
- </code></pre>
174
-
175
- <p>Output:</p>
176
-
177
- <pre><code>&lt;ul&gt;
178
- &lt;li&gt;&lt;p&gt;A list item.&lt;/p&gt;
179
- &lt;p&gt;With multiple paragraphs.&lt;/p&gt;&lt;/li&gt;
180
- &lt;li&gt;&lt;p&gt;Another item in the list.&lt;/p&gt;&lt;/li&gt;
181
- &lt;/ul&gt;
182
- </code></pre>
183
-
184
- <h3>Links</h3>
185
-
186
- <p>Markdown supports two styles for creating links: <em>inline</em> and
187
- <em>reference</em>. With both styles, you use square brackets to delimit the
188
- text you want to turn into a link.</p>
189
-
190
- <p>Inline-style links use parentheses immediately after the link text.
191
- For example:</p>
192
-
193
- <pre><code>This is an [example link](http://example.com/).
194
- </code></pre>
195
-
196
- <p>Output:</p>
197
-
198
- <pre><code>&lt;p&gt;This is an &lt;a href="http://example.com/"&gt;
199
- example link&lt;/a&gt;.&lt;/p&gt;
200
- </code></pre>
201
-
202
- <p>Optionally, you may include a title attribute in the parentheses:</p>
203
-
204
- <pre><code>This is an [example link](http://example.com/ "With a Title").
205
- </code></pre>
206
-
207
- <p>Output:</p>
208
-
209
- <pre><code>&lt;p&gt;This is an &lt;a href="http://example.com/" title="With a Title"&gt;
210
- example link&lt;/a&gt;.&lt;/p&gt;
211
- </code></pre>
212
-
213
- <p>Reference-style links allow you to refer to your links by names, which
214
- you define elsewhere in your document:</p>
215
-
216
- <pre><code>I get 10 times more traffic from [Google][1] than from
217
- [Yahoo][2] or [MSN][3].
218
-
219
- [1]: http://google.com/ "Google"
220
- [2]: http://search.yahoo.com/ "Yahoo Search"
221
- [3]: http://search.msn.com/ "MSN Search"
222
- </code></pre>
223
-
224
- <p>Output:</p>
225
-
226
- <pre><code>&lt;p&gt;I get 10 times more traffic from &lt;a href="http://google.com/"
227
- title="Google"&gt;Google&lt;/a&gt; than from &lt;a href="http://search.yahoo.com/"
228
- title="Yahoo Search"&gt;Yahoo&lt;/a&gt; or &lt;a href="http://search.msn.com/"
229
- title="MSN Search"&gt;MSN&lt;/a&gt;.&lt;/p&gt;
230
- </code></pre>
231
-
232
- <p>The title attribute is optional. Link names may contain letters,
233
- numbers and spaces, but are <em>not</em> case sensitive:</p>
234
-
235
- <pre><code>I start my morning with a cup of coffee and
236
- [The New York Times][NY Times].
237
-
238
- [ny times]: http://www.nytimes.com/
239
- </code></pre>
240
-
241
- <p>Output:</p>
242
-
243
- <pre><code>&lt;p&gt;I start my morning with a cup of coffee and
244
- &lt;a href="http://www.nytimes.com/"&gt;The New York Times&lt;/a&gt;.&lt;/p&gt;
245
- </code></pre>
246
-
247
- <h3>Images</h3>
248
-
249
- <p>Image syntax is very much like link syntax.</p>
250
-
251
- <p>Inline (titles are optional):</p>
252
-
253
- <pre><code>![alt text](/path/to/img.jpg "Title")
254
- </code></pre>
255
-
256
- <p>Reference-style:</p>
257
-
258
- <pre><code>![alt text][id]
259
-
260
- [id]: /path/to/img.jpg "Title"
261
- </code></pre>
262
-
263
- <p>Both of the above examples produce the same output:</p>
264
-
265
- <pre><code>&lt;img src="/path/to/img.jpg" alt="alt text" title="Title" /&gt;
266
- </code></pre>
267
-
268
- <h3>Code</h3>
269
-
270
- <p>In a regular paragraph, you can create code span by wrapping text in
271
- backtick quotes. Any ampersands (<code>&amp;</code>) and angle brackets (<code>&lt;</code> or
272
- <code>&gt;</code>) will automatically be translated into HTML entities. This makes
273
- it easy to use Markdown to write about HTML example code:</p>
274
-
275
- <pre><code>I strongly recommend against using any `&lt;blink&gt;` tags.
276
-
277
- I wish SmartyPants used named entities like `&amp;mdash;`
278
- instead of decimal-encoded entites like `&amp;#8212;`.
279
- </code></pre>
280
-
281
- <p>Output:</p>
282
-
283
- <pre><code>&lt;p&gt;I strongly recommend against using any
284
- &lt;code&gt;&amp;lt;blink&amp;gt;&lt;/code&gt; tags.&lt;/p&gt;
285
-
286
- &lt;p&gt;I wish SmartyPants used named entities like
287
- &lt;code&gt;&amp;amp;mdash;&lt;/code&gt; instead of decimal-encoded
288
- entites like &lt;code&gt;&amp;amp;#8212;&lt;/code&gt;.&lt;/p&gt;
289
- </code></pre>
290
-
291
- <p>To specify an entire block of pre-formatted code, indent every line of
292
- the block by 4 spaces or 1 tab. Just like with code spans, <code>&amp;</code>, <code>&lt;</code>,
293
- and <code>&gt;</code> characters will be escaped automatically.</p>
294
-
295
- <p>Markdown:</p>
296
-
297
- <pre><code>If you want your page to validate under XHTML 1.0 Strict,
298
- you've got to put paragraph tags in your blockquotes:
299
-
300
- &lt;blockquote&gt;
301
- &lt;p&gt;For example.&lt;/p&gt;
302
- &lt;/blockquote&gt;
303
- </code></pre>
304
-
305
- <p>Output:</p>
306
-
307
- <pre><code>&lt;p&gt;If you want your page to validate under XHTML 1.0 Strict,
308
- you've got to put paragraph tags in your blockquotes:&lt;/p&gt;
309
-
310
- &lt;pre&gt;&lt;code&gt;&amp;lt;blockquote&amp;gt;
311
- &amp;lt;p&amp;gt;For example.&amp;lt;/p&amp;gt;
312
- &amp;lt;/blockquote&amp;gt;
313
- &lt;/code&gt;&lt;/pre&gt;
314
- </code></pre>