bluecloth 2.0.6.pre120-x86-mswin32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. data/ChangeLog +363 -0
  2. data/LICENSE +27 -0
  3. data/LICENSE.discount +47 -0
  4. data/README +81 -0
  5. data/Rakefile +349 -0
  6. data/Rakefile.local +43 -0
  7. data/bin/bluecloth +84 -0
  8. data/ext/Csio.c +61 -0
  9. data/ext/VERSION +1 -0
  10. data/ext/amalloc.h +29 -0
  11. data/ext/bluecloth.c +391 -0
  12. data/ext/bluecloth.h +19 -0
  13. data/ext/config.h +55 -0
  14. data/ext/css.c +76 -0
  15. data/ext/cstring.h +75 -0
  16. data/ext/docheader.c +43 -0
  17. data/ext/extconf.rb +52 -0
  18. data/ext/generate.c +1602 -0
  19. data/ext/markdown.c +1078 -0
  20. data/ext/markdown.h +146 -0
  21. data/ext/mkdio.c +303 -0
  22. data/ext/mkdio.h +79 -0
  23. data/ext/resource.c +155 -0
  24. data/ext/version.c +28 -0
  25. data/ext/xml.c +82 -0
  26. data/ext/xmlpage.c +48 -0
  27. data/lib/1.8/bluecloth_ext.so +0 -0
  28. data/lib/1.9/bluecloth_ext.so +0 -0
  29. data/lib/bluecloth.rb +164 -0
  30. data/rake/191_compat.rb +26 -0
  31. data/rake/dependencies.rb +76 -0
  32. data/rake/helpers.rb +434 -0
  33. data/rake/hg.rb +273 -0
  34. data/rake/manual.rb +782 -0
  35. data/rake/packaging.rb +126 -0
  36. data/rake/publishing.rb +269 -0
  37. data/rake/rdoc.rb +30 -0
  38. data/rake/style.rb +62 -0
  39. data/rake/svn.rb +668 -0
  40. data/rake/testing.rb +187 -0
  41. data/rake/verifytask.rb +64 -0
  42. data/rake/win32.rb +190 -0
  43. data/spec/bluecloth/101_changes_spec.rb +141 -0
  44. data/spec/bluecloth/autolinks_spec.rb +49 -0
  45. data/spec/bluecloth/blockquotes_spec.rb +145 -0
  46. data/spec/bluecloth/code_spans_spec.rb +164 -0
  47. data/spec/bluecloth/emphasis_spec.rb +164 -0
  48. data/spec/bluecloth/entities_spec.rb +65 -0
  49. data/spec/bluecloth/hrules_spec.rb +90 -0
  50. data/spec/bluecloth/images_spec.rb +92 -0
  51. data/spec/bluecloth/inline_html_spec.rb +238 -0
  52. data/spec/bluecloth/links_spec.rb +171 -0
  53. data/spec/bluecloth/lists_spec.rb +294 -0
  54. data/spec/bluecloth/paragraphs_spec.rb +75 -0
  55. data/spec/bluecloth/titles_spec.rb +305 -0
  56. data/spec/bluecloth_spec.rb +281 -0
  57. data/spec/bugfix_spec.rb +172 -0
  58. data/spec/contributions_spec.rb +85 -0
  59. data/spec/data/antsugar.txt +34 -0
  60. data/spec/data/markdowntest/Amps and angle encoding.html +17 -0
  61. data/spec/data/markdowntest/Amps and angle encoding.text +21 -0
  62. data/spec/data/markdowntest/Auto links.html +18 -0
  63. data/spec/data/markdowntest/Auto links.text +13 -0
  64. data/spec/data/markdowntest/Backslash escapes.html +118 -0
  65. data/spec/data/markdowntest/Backslash escapes.text +120 -0
  66. data/spec/data/markdowntest/Blockquotes with code blocks.html +15 -0
  67. data/spec/data/markdowntest/Blockquotes with code blocks.text +11 -0
  68. data/spec/data/markdowntest/Code Blocks.html +18 -0
  69. data/spec/data/markdowntest/Code Blocks.text +14 -0
  70. data/spec/data/markdowntest/Code Spans.html +5 -0
  71. data/spec/data/markdowntest/Code Spans.text +5 -0
  72. data/spec/data/markdowntest/Hard-wrapped paragraphs with list-like lines.html +8 -0
  73. data/spec/data/markdowntest/Hard-wrapped paragraphs with list-like lines.text +8 -0
  74. data/spec/data/markdowntest/Horizontal rules.html +71 -0
  75. data/spec/data/markdowntest/Horizontal rules.text +67 -0
  76. data/spec/data/markdowntest/Inline HTML (Advanced).html +15 -0
  77. data/spec/data/markdowntest/Inline HTML (Advanced).text +15 -0
  78. data/spec/data/markdowntest/Inline HTML (Simple).html +72 -0
  79. data/spec/data/markdowntest/Inline HTML (Simple).text +69 -0
  80. data/spec/data/markdowntest/Inline HTML comments.html +13 -0
  81. data/spec/data/markdowntest/Inline HTML comments.text +13 -0
  82. data/spec/data/markdowntest/Links, inline style.html +11 -0
  83. data/spec/data/markdowntest/Links, inline style.text +12 -0
  84. data/spec/data/markdowntest/Links, reference style.html +52 -0
  85. data/spec/data/markdowntest/Links, reference style.text +71 -0
  86. data/spec/data/markdowntest/Links, shortcut references.html +9 -0
  87. data/spec/data/markdowntest/Links, shortcut references.text +20 -0
  88. data/spec/data/markdowntest/Literal quotes in titles.html +3 -0
  89. data/spec/data/markdowntest/Literal quotes in titles.text +7 -0
  90. data/spec/data/markdowntest/Markdown Documentation - Basics.html +314 -0
  91. data/spec/data/markdowntest/Markdown Documentation - Basics.text +306 -0
  92. data/spec/data/markdowntest/Markdown Documentation - Syntax.html +942 -0
  93. data/spec/data/markdowntest/Markdown Documentation - Syntax.text +888 -0
  94. data/spec/data/markdowntest/Nested blockquotes.html +9 -0
  95. data/spec/data/markdowntest/Nested blockquotes.text +5 -0
  96. data/spec/data/markdowntest/Ordered and unordered lists.html +148 -0
  97. data/spec/data/markdowntest/Ordered and unordered lists.text +131 -0
  98. data/spec/data/markdowntest/Strong and em together.html +7 -0
  99. data/spec/data/markdowntest/Strong and em together.text +7 -0
  100. data/spec/data/markdowntest/Tabs.html +25 -0
  101. data/spec/data/markdowntest/Tabs.text +21 -0
  102. data/spec/data/markdowntest/Tidyness.html +8 -0
  103. data/spec/data/markdowntest/Tidyness.text +5 -0
  104. data/spec/data/ml-announce.txt +17 -0
  105. data/spec/data/re-overflow.txt +67 -0
  106. data/spec/data/re-overflow2.txt +281 -0
  107. data/spec/discount_spec.rb +184 -0
  108. data/spec/lib/constants.rb +5 -0
  109. data/spec/lib/helpers.rb +137 -0
  110. data/spec/lib/matchers.rb +235 -0
  111. data/spec/markdowntest_spec.rb +79 -0
  112. metadata +205 -0
@@ -0,0 +1,120 @@
1
+ These should all get escaped:
2
+
3
+ Backslash: \\
4
+
5
+ Backtick: \`
6
+
7
+ Asterisk: \*
8
+
9
+ Underscore: \_
10
+
11
+ Left brace: \{
12
+
13
+ Right brace: \}
14
+
15
+ Left bracket: \[
16
+
17
+ Right bracket: \]
18
+
19
+ Left paren: \(
20
+
21
+ Right paren: \)
22
+
23
+ Greater-than: \>
24
+
25
+ Hash: \#
26
+
27
+ Period: \.
28
+
29
+ Bang: \!
30
+
31
+ Plus: \+
32
+
33
+ Minus: \-
34
+
35
+
36
+
37
+ These should not, because they occur within a code block:
38
+
39
+ Backslash: \\
40
+
41
+ Backtick: \`
42
+
43
+ Asterisk: \*
44
+
45
+ Underscore: \_
46
+
47
+ Left brace: \{
48
+
49
+ Right brace: \}
50
+
51
+ Left bracket: \[
52
+
53
+ Right bracket: \]
54
+
55
+ Left paren: \(
56
+
57
+ Right paren: \)
58
+
59
+ Greater-than: \>
60
+
61
+ Hash: \#
62
+
63
+ Period: \.
64
+
65
+ Bang: \!
66
+
67
+ Plus: \+
68
+
69
+ Minus: \-
70
+
71
+
72
+ Nor should these, which occur in code spans:
73
+
74
+ Backslash: `\\`
75
+
76
+ Backtick: `` \` ``
77
+
78
+ Asterisk: `\*`
79
+
80
+ Underscore: `\_`
81
+
82
+ Left brace: `\{`
83
+
84
+ Right brace: `\}`
85
+
86
+ Left bracket: `\[`
87
+
88
+ Right bracket: `\]`
89
+
90
+ Left paren: `\(`
91
+
92
+ Right paren: `\)`
93
+
94
+ Greater-than: `\>`
95
+
96
+ Hash: `\#`
97
+
98
+ Period: `\.`
99
+
100
+ Bang: `\!`
101
+
102
+ Plus: `\+`
103
+
104
+ Minus: `\-`
105
+
106
+
107
+ These should get escaped, even though they're matching pairs for
108
+ other Markdown constructs:
109
+
110
+ \*asterisks\*
111
+
112
+ \_underscores\_
113
+
114
+ \`backticks\`
115
+
116
+ This is a code span with a literal backslash-backtick sequence: `` \` ``
117
+
118
+ This is a tag with unescaped backticks <span attr='`ticks`'>bar</span>.
119
+
120
+ This is a tag with backslashes <span attr='\\backslashes\\'>bar</span>.
@@ -0,0 +1,15 @@
1
+ <blockquote>
2
+ <p>Example:</p>
3
+
4
+ <pre><code>sub status {
5
+ print "working";
6
+ }
7
+ </code></pre>
8
+
9
+ <p>Or:</p>
10
+
11
+ <pre><code>sub status {
12
+ return "working";
13
+ }
14
+ </code></pre>
15
+ </blockquote>
@@ -0,0 +1,11 @@
1
+ > Example:
2
+ >
3
+ > sub status {
4
+ > print "working";
5
+ > }
6
+ >
7
+ > Or:
8
+ >
9
+ > sub status {
10
+ > return "working";
11
+ > }
@@ -0,0 +1,18 @@
1
+ <pre><code>code block on the first line
2
+ </code></pre>
3
+
4
+ <p>Regular text.</p>
5
+
6
+ <pre><code>code block indented by spaces
7
+ </code></pre>
8
+
9
+ <p>Regular text.</p>
10
+
11
+ <pre><code>the lines in this block
12
+ all contain trailing spaces
13
+ </code></pre>
14
+
15
+ <p>Regular Text.</p>
16
+
17
+ <pre><code>code block on the last line
18
+ </code></pre>
@@ -0,0 +1,14 @@
1
+ code block on the first line
2
+
3
+ Regular text.
4
+
5
+ code block indented by spaces
6
+
7
+ Regular text.
8
+
9
+ the lines in this block
10
+ all contain trailing spaces
11
+
12
+ Regular Text.
13
+
14
+ code block on the last line
@@ -0,0 +1,5 @@
1
+ <p><code>&lt;test a="</code> content of attribute <code>"&gt;</code></p>
2
+
3
+ <p>Fix for backticks within HTML tag: <span attr='`ticks`'>like this</span></p>
4
+
5
+ <p>Here's how you put <code>`backticks`</code> in a code span.</p>
@@ -0,0 +1,5 @@
1
+ `<test a="` content of attribute `">`
2
+
3
+ Fix for backticks within HTML tag: <span attr='`ticks`'>like this</span>
4
+
5
+ Here's how you put `` `backticks` `` in a code span.
@@ -0,0 +1,8 @@
1
+ <p>In Markdown 1.0.0 and earlier. Version
2
+ 8. This line turns into a list item.
3
+ Because a hard-wrapped line in the
4
+ middle of a paragraph looked like a
5
+ list item.</p>
6
+
7
+ <p>Here's one with a bullet.
8
+ * criminey.</p>
@@ -0,0 +1,8 @@
1
+ In Markdown 1.0.0 and earlier. Version
2
+ 8. This line turns into a list item.
3
+ Because a hard-wrapped line in the
4
+ middle of a paragraph looked like a
5
+ list item.
6
+
7
+ Here's one with a bullet.
8
+ * criminey.
@@ -0,0 +1,71 @@
1
+ <p>Dashes:</p>
2
+
3
+ <hr />
4
+
5
+ <hr />
6
+
7
+ <hr />
8
+
9
+ <hr />
10
+
11
+ <pre><code>---
12
+ </code></pre>
13
+
14
+ <hr />
15
+
16
+ <hr />
17
+
18
+ <hr />
19
+
20
+ <hr />
21
+
22
+ <pre><code>- - -
23
+ </code></pre>
24
+
25
+ <p>Asterisks:</p>
26
+
27
+ <hr />
28
+
29
+ <hr />
30
+
31
+ <hr />
32
+
33
+ <hr />
34
+
35
+ <pre><code>***
36
+ </code></pre>
37
+
38
+ <hr />
39
+
40
+ <hr />
41
+
42
+ <hr />
43
+
44
+ <hr />
45
+
46
+ <pre><code>* * *
47
+ </code></pre>
48
+
49
+ <p>Underscores:</p>
50
+
51
+ <hr />
52
+
53
+ <hr />
54
+
55
+ <hr />
56
+
57
+ <hr />
58
+
59
+ <pre><code>___
60
+ </code></pre>
61
+
62
+ <hr />
63
+
64
+ <hr />
65
+
66
+ <hr />
67
+
68
+ <hr />
69
+
70
+ <pre><code>_ _ _
71
+ </code></pre>
@@ -0,0 +1,67 @@
1
+ Dashes:
2
+
3
+ ---
4
+
5
+ ---
6
+
7
+ ---
8
+
9
+ ---
10
+
11
+ ---
12
+
13
+ - - -
14
+
15
+ - - -
16
+
17
+ - - -
18
+
19
+ - - -
20
+
21
+ - - -
22
+
23
+
24
+ Asterisks:
25
+
26
+ ***
27
+
28
+ ***
29
+
30
+ ***
31
+
32
+ ***
33
+
34
+ ***
35
+
36
+ * * *
37
+
38
+ * * *
39
+
40
+ * * *
41
+
42
+ * * *
43
+
44
+ * * *
45
+
46
+
47
+ Underscores:
48
+
49
+ ___
50
+
51
+ ___
52
+
53
+ ___
54
+
55
+ ___
56
+
57
+ ___
58
+
59
+ _ _ _
60
+
61
+ _ _ _
62
+
63
+ _ _ _
64
+
65
+ _ _ _
66
+
67
+ _ _ _
@@ -0,0 +1,15 @@
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 style=">"/>
13
+ </div>
14
+ <div>bar</div>
15
+ </div>
@@ -0,0 +1,15 @@
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 style=">"/>
13
+ </div>
14
+ <div>bar</div>
15
+ </div>
@@ -0,0 +1,72 @@
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" >