maruku 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. data/bin/maruku +74 -22
  2. data/bin/marutest +15 -3
  3. data/docs/{changelog-0.3.md → changelog.md} +47 -18
  4. data/docs/entity_test.html +253 -0
  5. data/docs/entity_test.md +21 -0
  6. data/docs/index.html +124 -31
  7. data/docs/markdown_syntax.html +46 -46
  8. data/docs/maruku.html +124 -31
  9. data/docs/maruku.md +47 -9
  10. data/docs/proposal.html +4 -4
  11. data/lib/maruku.rb +1 -0
  12. data/lib/maruku/defaults.rb +1 -1
  13. data/lib/maruku/helpers.rb +4 -4
  14. data/lib/maruku/input/parse_block.rb +39 -33
  15. data/lib/maruku/input/parse_doc.rb +57 -3
  16. data/lib/maruku/input/parse_span_better.rb +28 -8
  17. data/lib/maruku/input/rubypants.rb +225 -0
  18. data/lib/maruku/input/type_detection.rb +1 -0
  19. data/lib/maruku/output/to_html.rb +46 -47
  20. data/lib/maruku/output/to_latex.rb +166 -45
  21. data/lib/maruku/output/to_latex_entities.rb +75 -43
  22. data/lib/maruku/string_utils.rb +21 -19
  23. data/lib/maruku/structures.rb +21 -12
  24. data/lib/maruku/structures_inspect.rb +12 -3
  25. data/lib/maruku/tests/new_parser.rb +2 -1
  26. data/lib/maruku/version.rb +1 -1
  27. data/tests/unittest/abbreviations.md +8 -8
  28. data/tests/unittest/attributes/attributes.md +10 -10
  29. data/tests/unittest/attributes/circular.md +4 -4
  30. data/tests/unittest/attributes/default.md +3 -3
  31. data/tests/unittest/blank.md +2 -2
  32. data/tests/unittest/blanks_in_code.md +12 -12
  33. data/tests/unittest/code.md +4 -4
  34. data/tests/unittest/code2.md +7 -6
  35. data/tests/unittest/code3.md +16 -16
  36. data/tests/unittest/easy.md +4 -4
  37. data/tests/unittest/email.md +4 -4
  38. data/tests/unittest/encoding/iso-8859-1.md +2 -2
  39. data/tests/unittest/encoding/utf-8.md +2 -2
  40. data/tests/unittest/entities.md +20 -20
  41. data/tests/unittest/escaping.md +16 -16
  42. data/tests/unittest/extra_dl.md +17 -7
  43. data/tests/unittest/extra_header_id.md +11 -11
  44. data/tests/unittest/extra_table1.md +4 -4
  45. data/tests/unittest/footnotes.md +38 -28
  46. data/tests/unittest/headers.md +6 -6
  47. data/tests/unittest/hrule.md +6 -6
  48. data/tests/unittest/images.md +18 -16
  49. data/tests/unittest/inline_html.md +7 -29
  50. data/tests/unittest/inline_html2.md +3 -3
  51. data/tests/unittest/links.md +7 -27
  52. data/tests/unittest/list1.md +9 -8
  53. data/tests/unittest/list2.md +15 -12
  54. data/tests/unittest/list3.md +16 -14
  55. data/tests/unittest/list4.md +4 -4
  56. data/tests/unittest/lists.md +33 -29
  57. data/tests/unittest/lists_after_paragraph.md +36 -36
  58. data/tests/unittest/lists_ol.md +43 -38
  59. data/tests/unittest/misc_sw.md +172 -156
  60. data/tests/unittest/notyet/escape.md +8 -8
  61. data/tests/unittest/notyet/header_after_par.md +6 -6
  62. data/tests/unittest/notyet/ticks.md +4 -4
  63. data/tests/unittest/notyet/triggering.md +21 -21
  64. data/tests/unittest/olist.md +5 -5
  65. data/tests/unittest/one.md +1 -1
  66. data/tests/unittest/paragraph.md +1 -1
  67. data/tests/unittest/paragraph_rules/dont_merge_ref.md +1 -1
  68. data/tests/unittest/paragraph_rules/tab_is_blank.md +2 -2
  69. data/tests/unittest/paragraphs.md +5 -5
  70. data/tests/unittest/recover/recover_links.md +2 -2
  71. data/tests/unittest/references/long_example.md +27 -19
  72. data/tests/unittest/smartypants.md +148 -0
  73. data/tests/unittest/syntax_hl.md +14 -14
  74. data/tests/unittest/test.md +2 -2
  75. data/tests/unittest/wrapping.md +8 -8
  76. data/tests/unittest/xml_instruction.md +82 -0
  77. metadata +149 -160
  78. data/docs/TOFIX.html +0 -22
  79. data/docs/TOFIX.md +0 -3
  80. data/docs/changelog-0.2.13.html +0 -30
  81. data/docs/changelog-0.2.13.md +0 -6
  82. data/docs/changelog-0.3.html +0 -113
  83. data/docs/faq.html +0 -57
  84. data/docs/faq.md +0 -32
  85. data/docs/hidden_o_n_squared.md +0 -10
  86. data/docs/todo.html +0 -40
  87. data/docs/todo.md +0 -9
@@ -33,9 +33,9 @@ This is an email address:
33
33
 
34
34
 
35
35
  *** Output of Markdown.pl ***
36
- <p>This is an email address: <a href="&#x6D;a&#x69;&#x6C;&#x74;&#x6F;:&#97;&#x6E;&#100;&#x72;&#x65;&#x61;&#64;&#x69;n&#x76;&#97;&#x6C;&#x69;&#x64;&#x2E;&#x69;t">&#97;&#x6E;&#100;&#x72;&#x65;&#x61;&#64;&#x69;n&#x76;&#97;&#x6C;&#x69;&#x64;&#x2E;&#x69;t</a></p>
36
+ <p>This is an email address: <a href="&#109;&#x61;&#x69;&#x6C;&#116;&#x6F;:a&#x6E;&#100;&#114;&#x65;a&#64;&#105;&#x6E;&#x76;&#x61;&#108;&#x69;&#100;&#46;&#105;&#116;">a&#x6E;&#100;&#114;&#x65;a&#64;&#105;&#x6E;&#x76;&#x61;&#108;&#x69;&#100;&#46;&#105;&#116;</a></p>
37
37
 
38
38
  *** Output of Markdown.pl (parsed) ***
39
- <p>This is an email address: <a href='&amp;#x6D;a&amp;#x69;&amp;#x6C;&amp;#x74;&amp;#x6F;:&amp;#97;&amp;#x6E;&amp;#100;&amp;#x72;&amp;#x65;&amp;#x61;&amp;#64;&amp;#x69;n&amp;#x76;&amp;#97;&amp;#x6C;&amp;#x69;&amp;#x64;&amp;#x2E;&amp;#x69;t'>&#97;&#x6E;&#100;&#x72;&#x65;&#x61;&#64;&#x69;n&#x76;&#97;&#x6C;&#x69;&#x64;&#x2E;&#x69;t</a
40
- ></p
41
- >
39
+ <p>This is an email address: <a href='&amp;#109;&amp;#x61;&amp;#x69;&amp;#x6C;&amp;#116;&amp;#x6F;:a&amp;#x6E;&amp;#100;&amp;#114;&amp;#x65;a&amp;#64;&amp;#105;&amp;#x6E;&amp;#x76;&amp;#x61;&amp;#108;&amp;#x69;&amp;#100;&amp;#46;&amp;#105;&amp;#116;'>a&#x6E;&#100;&#114;&#x65;a&#64;&#105;&#x6E;&#x76;&#x61;&#108;&#x69;&#100;&#46;&#105;&#116;</a
40
+ ></p
41
+ >
@@ -42,5 +42,5 @@ This is iso-8859-1: àèìàù.
42
42
 
43
43
  *** Output of Markdown.pl (parsed) ***
44
44
  <p>Encoding: iso-8859-1</p
45
- ><p>This is iso-8859-1: àèìàù.</p
46
- >
45
+ ><p>This is iso-8859-1: àèìàù.</p
46
+ >
@@ -35,5 +35,5 @@ Japanese: マルク
35
35
 
36
36
  *** Output of Markdown.pl (parsed) ***
37
37
  <p>Italian: àèìòù.</p
38
- ><p>Japanese: マルク</p
39
- >
38
+ ><p>Japanese: マルク</p
39
+ >
@@ -63,11 +63,11 @@ Maruku translates HTML entities to the equivalent in \LaTeX\xspace :
63
63
  \begin{tabular}{l|l}
64
64
  Entity&Result\\
65
65
  \hline
66
- \colorbox[rgb]{1.00,0.67,1.00}{\tt \char38\char99\char111\char112\char121\char59}&\copyright\\
67
- \colorbox[rgb]{1.00,0.67,1.00}{\tt \char38\char112\char111\char117\char110\char100\char59}&\pounds\\
68
- \colorbox[rgb]{1.00,0.67,1.00}{\tt \char97\char38\char110\char98\char115\char112\char59\char98}&a~b\\
69
- \colorbox[rgb]{1.00,0.67,1.00}{\tt \char38\char108\char97\char109\char98\char100\char97\char59}&$\lambda$\\
70
- \colorbox[rgb]{1.00,0.67,1.00}{\tt \char38\char109\char100\char97\char115\char104\char59}&---\\
66
+ \colorbox[rgb]{1.00,0.93,1.00}{\tt \char38\char99\char111\char112\char121\char59}&\copyright \\
67
+ \colorbox[rgb]{1.00,0.93,1.00}{\tt \char38\char112\char111\char117\char110\char100\char59}&\pounds \\
68
+ \colorbox[rgb]{1.00,0.93,1.00}{\tt \char97\char38\char110\char98\char115\char112\char59\char98}&a~b\\
69
+ \colorbox[rgb]{1.00,0.93,1.00}{\tt \char38\char108\char97\char109\char98\char100\char97\char59}&$\lambda$\\
70
+ \colorbox[rgb]{1.00,0.93,1.00}{\tt \char38\char109\char100\char97\char115\char104\char59}&---\\
71
71
  \end{tabular}
72
72
 
73
73
  Entity-substitution does not happen in code blocks or inline code.
@@ -76,7 +76,7 @@ The following should not be translated:
76
76
 
77
77
  \begin{verbatim}&copy;
78
78
  \end{verbatim}
79
- It should read just like this: \colorbox[rgb]{1.00,0.67,1.00}{\tt \char38\char99\char111\char112\char121\char59}.
79
+ It should read just like this: \colorbox[rgb]{1.00,0.93,1.00}{\tt \char38\char99\char111\char112\char121\char59}.
80
80
 
81
81
 
82
82
  *** Output of to_md ***
@@ -123,24 +123,24 @@ Maruku translates HTML entities to the equivalent in LaTeX:EntityResultabEntity-
123
123
 
124
124
  *** Output of Markdown.pl (parsed) ***
125
125
  <p>Maruku translates HTML entities to the equivalent in LaTeX:</p
126
- ><p>Entity | Result
126
+ ><p>Entity | Result
127
127
  ------------|----------
128
128
  <code>&amp;copy;</code
129
- > | &copy;
129
+ > | &copy;
130
130
  <code>&amp;pound;</code
131
- > | &pound;
131
+ > | &pound;
132
132
  <code>a&amp;nbsp;b</code
133
- > | a&nbsp;b
133
+ > | a&nbsp;b
134
134
  <code>&amp;lambda;</code
135
- > | &lambda;
135
+ > | &lambda;
136
136
  <code>&amp;mdash;</code
137
- > | &mdash;</p
138
- ><p>Entity-substitution does not happen in code blocks or inline code.</p
139
- ><p>The following should not be translated:</p
140
- ><pre
141
- ><code>&amp;copy;
137
+ > | &mdash;</p
138
+ ><p>Entity-substitution does not happen in code blocks or inline code.</p
139
+ ><p>The following should not be translated:</p
140
+ ><pre
141
+ ><code>&amp;copy;
142
142
  </code
143
- ></pre
144
- ><p>It should read just like this: <code>&amp;copy;</code
145
- >.</p
146
- >
143
+ ></pre
144
+ ><p>It should read just like this: <code>&amp;copy;</code
145
+ >.</p
146
+ >
@@ -48,11 +48,11 @@ Hello: ! ! ` \{ \} [ ] ( ) \# . ! * * *
48
48
 
49
49
  Ora, {\em emphasis}, {\bf bold}, * {\tt \char60}- due asterischi-{\tt \char62} * , un underscore-{\tt \char62} \_ , {\em emphasis}, incre{\em dible}e!
50
50
 
51
- This is \colorbox[rgb]{1.00,0.67,1.00}{\tt \char67\char111\char100\char101\char32\char119\char105\char116\char104\char32\char97\char32\char115\char112\char101\char99\char105\char97\char108\char58\char32\char45\char62\char32\char96\char32\char60\char45}(after)
51
+ This is \colorbox[rgb]{1.00,0.93,1.00}{\tt \char67\char111\char100\char101\char32\char119\char105\char116\char104\char32\char97\char32\char115\char112\char101\char99\char105\char97\char108\char58\char32\char45\char62\char32\char96\char32\char60\char45}(after)
52
52
 
53
- \colorbox[rgb]{1.00,0.67,1.00}{\tt \char83\char116\char97\char114\char116\char32} of paragraph
53
+ \colorbox[rgb]{1.00,0.93,1.00}{\tt \char83\char116\char97\char114\char116\char32} of paragraph
54
54
 
55
- End of \colorbox[rgb]{1.00,0.67,1.00}{\tt \char112\char97\char114\char97\char103\char114\char97\char112\char104\char32}
55
+ End of \colorbox[rgb]{1.00,0.93,1.00}{\tt \char112\char97\char114\char97\char103\char114\char97\char112\char104\char32}
56
56
 
57
57
 
58
58
  *** Output of to_md ***
@@ -93,17 +93,17 @@ Hello: ! ! ` { } [ ] ( ) # . ! * * *Ora, emphasis, bold, * <- due asterischi-> *
93
93
 
94
94
  *** Output of Markdown.pl (parsed) ***
95
95
  <p>Hello: ! ! ` { } [ ] ( ) # . ! * * *</p
96
- ><p>Ora, <em>emphasis</em
97
- >, <strong>bold</strong
98
- >, * &lt;- due asterischi-> * , un underscore-> _ , <em>emphasis</em
99
- >,
96
+ ><p>Ora, <em>emphasis</em
97
+ >, <strong>bold</strong
98
+ >, * &lt;- due asterischi-> * , un underscore-> _ , <em>emphasis</em
99
+ >,
100
100
  incre<em>dible</em
101
- >e!</p
102
- ><p>This is <code>Code with a special: -&gt; ` &lt;-</code
103
- >(after)</p
104
- ><p
105
- ><code>Start</code
106
- > of paragraph</p
107
- ><p>End of <code>paragraph</code
108
- ></p
109
- >
101
+ >e!</p
102
+ ><p>This is <code>Code with a special: -&gt; ` &lt;-</code
103
+ >(after)</p
104
+ ><p
105
+ ><code>Start</code
106
+ > of paragraph</p
107
+ ><p>End of <code>paragraph</code
108
+ ></p
109
+ >
@@ -30,7 +30,17 @@ md_el(:document,[
30
30
  ],{},[])
31
31
  ],{},[])
32
32
  *** Output of to_html ***
33
- <dl><dt>Apple</dt><dd>Pomaceous fruit of plants of the genus Malus in the family Rosaceae.</dd><dt>Orange</dt><dd>The fruit of an evergreen tree of the genus Citrus.</dd></dl>
33
+
34
+ <dl>
35
+ <dt>Apple</dt>
36
+
37
+ <dd>Pomaceous fruit of plants of the genus Malus in the family Rosaceae.</dd>
38
+
39
+ <dt>Orange</dt>
40
+
41
+ <dd>The fruit of an evergreen tree of the genus Citrus.</dd>
42
+ </dl>
43
+
34
44
  *** Output of to_latex ***
35
45
  \begin{description}
36
46
 
@@ -63,9 +73,9 @@ ApplePomaceous fruit of plants of the genus Malus in the family Rosaceae.OrangeT
63
73
 
64
74
  *** Output of Markdown.pl (parsed) ***
65
75
  <p>CSS: style.css</p
66
- ><p>Apple
67
- : Pomaceous fruit of plants of the genus Malus in
68
- the family Rosaceae.</p
69
- ><p>Orange
70
- : The fruit of an evergreen tree of the genus Citrus.</p
71
- >
76
+ ><p>Apple
77
+ : Pomaceous fruit of plants of the genus Malus in
78
+ the family Rosaceae.</p
79
+ ><p>Orange
80
+ : The fruit of an evergreen tree of the genus Citrus.</p
81
+ >
@@ -53,7 +53,7 @@ md_el(:document,[
53
53
 
54
54
  Then you can create links to different parts of the same document like this:
55
55
 
56
- , ,
56
+ \hyperlink{header1}{Link back to header 1}, \hyperlink{header2}{Link back to header 2}, \hyperlink{header3}{Link back to header 3}
57
57
 
58
58
 
59
59
  *** Output of to_md ***
@@ -89,15 +89,15 @@ Header 1Header 2Header 3Then you can create links to different parts of the same
89
89
  <a href="#header3">Link back to header 3</a></p>
90
90
 
91
91
  *** Output of Markdown.pl (parsed) ***
92
- <h1>Header 1 {#header1}</h1
93
- ><h2>Header 2 {#header2}</h2
94
- ><h3>Header 3 ### {#header3}</h3
95
- ><p>Then you can create links to different parts of the same document like this:</p
96
- ><p
97
- ><a href='#header1'>Link back to header 1</a
98
- >,
92
+ <h1>Header 1 {#header1}</h1
93
+ ><h2>Header 2 {#header2}</h2
94
+ ><h3>Header 3 ### {#header3}</h3
95
+ ><p>Then you can create links to different parts of the same document like this:</p
96
+ ><p
97
+ ><a href='#header1'>Link back to header 1</a
98
+ >,
99
99
  <a href='#header2'>Link back to header 2</a
100
- >,
100
+ >,
101
101
  <a href='#header3'>Link back to header 3</a
102
- ></p
103
- >
102
+ ></p
103
+ >
@@ -53,8 +53,8 @@ Content Cell | Content Cell</p>
53
53
 
54
54
  *** Output of Markdown.pl (parsed) ***
55
55
  <p>CSS: style.css</p
56
- ><p>First Header | Second Header
56
+ ><p>First Header | Second Header
57
57
  ------------- | -------------
58
- Content Cell | Content Cell
59
- Content Cell | Content Cell</p
60
- >
58
+ Content Cell | Content Cell
59
+ Content Cell | Content Cell</p
60
+ >
@@ -22,7 +22,9 @@ This is not a footnote.
22
22
  *** Output of inspect ***
23
23
  md_el(:document,[
24
24
  md_par([
25
- "That's some text with a footnote ",
25
+ "That",
26
+ md_entity("rsquo"),
27
+ "s some text with a footnote ",
26
28
  md_foot_ref("^b"),
27
29
  " and another ",
28
30
  md_foot_ref("^c"),
@@ -31,33 +33,41 @@ md_el(:document,[
31
33
  "."
32
34
  ]),
33
35
  md_el(:footnote,[
34
- md_par(["And that's the footnote."]),
35
- md_par(["That's the second paragraph of the footnote."])
36
+ md_par(["And that", md_entity("rsquo"), "s the footnote."]),
37
+ md_par([
38
+ "That",
39
+ md_entity("rsquo"),
40
+ "s the second paragraph of the footnote."
41
+ ])
36
42
  ],{:footnote_id=>"^a"},[]),
37
43
  md_el(:footnote,[
38
- md_par(["And that's the footnote. This is second sentence (same paragraph)"])
44
+ md_par([
45
+ "And that",
46
+ md_entity("rsquo"),
47
+ "s the footnote. This is second sentence (same paragraph)"
48
+ ])
39
49
  ],{:footnote_id=>"^b"},[]),
40
50
  md_el(:footnote,[
41
51
  md_par(["This is the very long one."]),
42
- md_par(["That's the second paragraph."])
52
+ md_par(["That", md_entity("rsquo"), "s the second paragraph."])
43
53
  ],{:footnote_id=>"^c"},[]),
44
54
  md_par(["This is not a footnote."])
45
55
  ],{},[])
46
56
  *** Output of to_html ***
47
57
 
48
- <p>That&apos;s some text with a footnote <sup id='fnref:1'><a href='#fn:1' rel='footnote'>1</a></sup> and another <sup id='fnref:2'><a href='#fn:2' rel='footnote'>2</a></sup> and another <sup id='fnref:3'><a href='#fn:3' rel='footnote'>3</a></sup>.</p>
58
+ <p>That&rsquo;s some text with a footnote <sup id='fnref:1'><a href='#fn:1' rel='footnote'>1</a></sup> and another <sup id='fnref:2'><a href='#fn:2' rel='footnote'>2</a></sup> and another <sup id='fnref:3'><a href='#fn:3' rel='footnote'>3</a></sup>.</p>
49
59
 
50
60
  <p>This is not a footnote.</p>
51
61
  <div class='footnotes'><hr /><ol><li id='fn:1'>
52
- <p>And that&apos;s the footnote. This is second sentence (same paragraph)</p>
62
+ <p>And that&rsquo;s the footnote. This is second sentence (same paragraph)</p>
53
63
  <a href='#fnref:1' rev='footnote'>&#8617;</a></li><li id='fn:2'>
54
64
  <p>This is the very long one.</p>
55
65
 
56
- <p>That&apos;s the second paragraph.</p>
66
+ <p>That&rsquo;s the second paragraph.</p>
57
67
  <a href='#fnref:2' rev='footnote'>&#8617;</a></li><li id='fn:3'>
58
- <p>And that&apos;s the footnote.</p>
68
+ <p>And that&rsquo;s the footnote.</p>
59
69
 
60
- <p>That&apos;s the second paragraph of the footnote.</p>
70
+ <p>That&rsquo;s the second paragraph of the footnote.</p>
61
71
  <a href='#fnref:3' rev='footnote'>&#8617;</a></li></ol></div>
62
72
  *** Output of to_latex ***
63
73
  That's some text with a footnote \footnote{And that's the footnote. This is second sentence (same paragraph)} and another \footnote{This is the very long one.
@@ -70,26 +80,26 @@ This is not a footnote.
70
80
 
71
81
 
72
82
  *** Output of to_md ***
73
- That's some text with a footnote and
83
+ That s some text with a footnote and
74
84
  another and another .
75
85
 
76
- And that's the footnote.
86
+ And that s the footnote.
77
87
 
78
- That's the second paragraph of the
88
+ That s the second paragraph of the
79
89
  footnote.
80
90
 
81
- And that's the footnote. This is second
91
+ And that s the footnote. This is second
82
92
  sentence (same paragraph)
83
93
 
84
94
  This is the very long one.
85
95
 
86
- That's the second paragraph.
96
+ That s the second paragraph.
87
97
 
88
98
  This is not a footnote.
89
99
 
90
100
 
91
101
  *** Output of to_s ***
92
- That's some text with a footnote and another and another .And that's the footnote.That's the second paragraph of the footnote.And that's the footnote. This is second sentence (same paragraph)This is the very long one.That's the second paragraph.This is not a footnote.
102
+ Thats some text with a footnote and another and another .And thats the footnote.Thats the second paragraph of the footnote.And thats the footnote. This is second sentence (same paragraph)This is the very long one.Thats the second paragraph.This is not a footnote.
93
103
  *** EOF ***
94
104
 
95
105
 
@@ -119,18 +129,18 @@ This is second sentence (same paragraph).</p>
119
129
 
120
130
  *** Output of Markdown.pl (parsed) ***
121
131
  <p>That's some text with a footnote [^b] and another [^c] and another [^a].</p
122
- ><p>[^a]: And that's the footnote.</p
123
- ><pre
124
- ><code>That's the second paragraph of the footnote.
132
+ ><p>[^a]: And that's the footnote.</p
133
+ ><pre
134
+ ><code>That's the second paragraph of the footnote.
125
135
  </code
126
- ></pre
127
- ><p>[^b]: And that's the footnote.
136
+ ></pre
137
+ ><p>[^b]: And that's the footnote.
128
138
  This is second sentence (same paragraph).</p
129
- ><p>[^c]:
130
- This is the very long one.</p
131
- ><pre
132
- ><code>That's the second paragraph.
139
+ ><p>[^c]:
140
+ This is the very long one.</p
141
+ ><pre
142
+ ><code>That's the second paragraph.
133
143
  </code
134
- ></pre
135
- ><p>This is not a footnote.</p
136
- >
144
+ ></pre
145
+ ><p>This is not a footnote.</p
146
+ >
@@ -56,9 +56,9 @@ A title with emphasisA title with emphasisA title with emphasis
56
56
 
57
57
  *** Output of Markdown.pl (parsed) ***
58
58
  <h1>A title with <em>emphasis</em
59
- ></h1
60
- ><h2>A title with <em>emphasis</em
61
- ></h2
62
- ><h4>A title with <em>emphasis</em
63
- ></h4
64
- >
59
+ ></h1
60
+ ><h2>A title with <em>emphasis</em
61
+ ></h2
62
+ ><h4>A title with <em>emphasis</em
63
+ ></h4
64
+ >
@@ -59,9 +59,9 @@ md_el(:document,[
59
59
  <hr />
60
60
 
61
61
  *** Output of Markdown.pl (parsed) ***
62
- <hr
63
- /><hr
64
- /><hr
65
- /><hr
66
- /><hr
67
- />
62
+ <hr/
63
+ ><hr/
64
+ ><hr/
65
+ ><hr/
66
+ ><hr/
67
+ >
@@ -39,7 +39,9 @@ md_el(:document,[
39
39
  md_im_image(["Cascading Style Sheets"], "http://jigsaw.w3.org/css-validator/images/vcss", "Title ok!")
40
40
  ]),
41
41
  md_par([
42
- "I'll say it one more time: this page does not use ",
42
+ "I",
43
+ md_entity("rsquo"),
44
+ "ll say it one more time: this page does not use ",
43
45
  md_image(["Cascading Style Sheets"], "css")
44
46
  ]),
45
47
  md_par([
@@ -57,7 +59,7 @@ md_el(:document,[
57
59
 
58
60
  <p>Please mouseover to see the title: <img title='Title ok!' src='http://jigsaw.w3.org/css-validator/images/vcss' /></p>
59
61
 
60
- <p>I&apos;ll say it one more time: this page does not use <img title='Optional title attribute' src='http://jigsaw.w3.org/css-validator/images/vcss' /></p>
62
+ <p>I&rsquo;ll say it one more time: this page does not use <img title='Optional title attribute' src='http://jigsaw.w3.org/css-validator/images/vcss' /></p>
61
63
 
62
64
  <p>This is double size: <img class='external' title='Optional title attribute' src='http://jigsaw.w3.org/css-validator/images/vcss' style='border:0;width:188px;height:131px' /></p>
63
65
 
@@ -83,7 +85,7 @@ Cascading Style Sheets
83
85
  Please mouseover to see the title:
84
86
  Cascading Style Sheets
85
87
 
86
- I'll say it one more time: this page
88
+ I ll say it one more time: this page
87
89
  does not use Cascading Style Sheets
88
90
 
89
91
  This is double size:
@@ -91,7 +93,7 @@ Cascading Style Sheets
91
93
 
92
94
 
93
95
  *** Output of to_s ***
94
- This page does not uilizes Cascading Style SheetsPlease mouseover to see the title: Cascading Style SheetsPlease mouseover to see the title: Cascading Style SheetsI'll say it one more time: this page does not use Cascading Style SheetsThis is double size: Cascading Style Sheets
96
+ This page does not uilizes Cascading Style SheetsPlease mouseover to see the title: Cascading Style SheetsPlease mouseover to see the title: Cascading Style SheetsIll say it one more time: this page does not use Cascading Style SheetsThis is double size: Cascading Style Sheets
95
97
  *** EOF ***
96
98
 
97
99
 
@@ -115,15 +117,15 @@ This page does not uilizes Cascading Style SheetsPlease mouseover to see the tit
115
117
  style="border:0;width:188px;height:131px"</p>
116
118
 
117
119
  *** Output of Markdown.pl (parsed) ***
118
- <p>This page does not uilizes <img title='' src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets'
119
- /></p
120
- ><p>Please mouseover to see the title: <img title='Title ok!' src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets'
121
- /></p
122
- ><p>Please mouseover to see the title: <img title='Title ok!' src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets'
123
- /></p
124
- ><p>I'll say it one more time: this page does not use <img title='Optional title attribute' src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets'
125
- /></p
126
- ><p>This is double size: ![Cascading Style Sheets] [css2]</p
127
- ><p>[css2]: http://jigsaw.w3.org/css-validator/images/vcss "Optional title attribute" class=external
128
- style="border:0;width:188px;height:131px"</p
129
- >
120
+ <p>This page does not uilizes <img title='' src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets'/
121
+ ></p
122
+ ><p>Please mouseover to see the title: <img title='Title ok!' src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets'/
123
+ ></p
124
+ ><p>Please mouseover to see the title: <img title='Title ok!' src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets'/
125
+ ></p
126
+ ><p>I'll say it one more time: this page does not use <img title='Optional title attribute' src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets'/
127
+ ></p
128
+ ><p>This is double size: ![Cascading Style Sheets] [css2]</p
129
+ ><p>[css2]: http://jigsaw.w3.org/css-validator/images/vcss "Optional title attribute" class=external
130
+ style="border:0;width:188px;height:131px"</p
131
+ >