maruku 0.5.9 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. data/bin/maruku +6 -1
  2. data/bin/marutest +25 -18
  3. data/lib/maruku.rb +3 -0
  4. data/lib/maruku/ext/div.rb +39 -6
  5. data/lib/maruku/ext/math/latex_fix.rb +1 -0
  6. data/lib/maruku/ext/math/mathml_engines/blahtex.rb +9 -8
  7. data/lib/maruku/ext/math/parsing.rb +15 -1
  8. data/lib/maruku/ext/math/to_html.rb +34 -17
  9. data/lib/maruku/ext/math/to_latex.rb +4 -0
  10. data/lib/maruku/helpers.rb +3 -3
  11. data/lib/maruku/input/charsource.rb +1 -1
  12. data/lib/maruku/input/parse_block.rb +1 -0
  13. data/lib/maruku/input/parse_doc.rb +12 -5
  14. data/lib/maruku/input/parse_span_better.rb +24 -10
  15. data/lib/maruku/output/s5/to_s5.rb +14 -1
  16. data/lib/maruku/output/to_html.rb +20 -1
  17. data/lib/maruku/output/to_latex.rb +27 -0
  18. data/lib/maruku/output/to_latex_entities.rb +2 -2
  19. data/lib/maruku/output/to_s.rb +5 -2
  20. data/lib/maruku/string_utils.rb +2 -2
  21. data/lib/maruku/structures.rb +2 -0
  22. data/lib/maruku/tests/new_parser.rb +5 -2
  23. data/lib/maruku/version.rb +1 -1
  24. data/tests/bugs/code_in_links.md +85 -0
  25. data/tests/bugs/complex_escaping.md +34 -0
  26. data/tests/unittest/abbreviations.md +2 -10
  27. data/tests/unittest/alt.md +2 -3
  28. data/tests/unittest/attributes/att2.md +2 -4
  29. data/tests/unittest/attributes/att3.md +2 -7
  30. data/tests/unittest/attributes/attributes.md +2 -15
  31. data/tests/unittest/attributes/circular.md +2 -7
  32. data/tests/unittest/attributes/default.md +2 -6
  33. data/tests/unittest/blank.md +2 -5
  34. data/tests/unittest/blanks_in_code.md +2 -21
  35. data/tests/unittest/bug_def.md +2 -3
  36. data/tests/unittest/bug_table.md +2 -11
  37. data/tests/unittest/code.md +2 -9
  38. data/tests/unittest/code2.md +2 -8
  39. data/tests/unittest/code3.md +2 -21
  40. data/tests/unittest/data_loss.md +2 -7
  41. data/tests/unittest/divs/div1.md +32 -57
  42. data/tests/unittest/divs/div2.md +6 -7
  43. data/tests/unittest/divs/div3_nest.md +8 -13
  44. data/tests/unittest/easy.md +2 -3
  45. data/tests/unittest/email.md +2 -3
  46. data/tests/unittest/encoding/iso-8859-1.md +2 -5
  47. data/tests/unittest/encoding/utf-8.md +2 -5
  48. data/tests/unittest/entities.md +2 -20
  49. data/tests/unittest/escaping.md +2 -12
  50. data/tests/unittest/extra_dl.md +2 -10
  51. data/tests/unittest/extra_header_id.md +2 -13
  52. data/tests/unittest/extra_table1.md +2 -8
  53. data/tests/unittest/footnotes.md +2 -19
  54. data/tests/{bugs/html.md → unittest/hang.md} +9 -9
  55. data/tests/unittest/headers.md +2 -7
  56. data/tests/unittest/hex_entities.md +2 -3
  57. data/tests/unittest/hrule.md +2 -11
  58. data/tests/unittest/html2.md +2 -6
  59. data/tests/unittest/html3.md +2 -6
  60. data/tests/unittest/html4.md +2 -7
  61. data/tests/unittest/html5.md +2 -5
  62. data/tests/unittest/ie.md +2 -23
  63. data/tests/unittest/images.md +2 -14
  64. data/tests/unittest/images2.md +2 -5
  65. data/tests/unittest/inline_html.md +6 -102
  66. data/tests/unittest/inline_html2.md +2 -5
  67. data/tests/unittest/links.md +17 -50
  68. data/tests/unittest/links2.md +2 -3
  69. data/tests/unittest/list1.md +2 -10
  70. data/tests/unittest/list12.md +2 -5
  71. data/tests/unittest/list2.md +2 -10
  72. data/tests/unittest/list3.md +2 -14
  73. data/tests/unittest/list4.md +2 -17
  74. data/tests/unittest/lists.md +2 -39
  75. data/tests/unittest/lists10.md +2 -7
  76. data/tests/unittest/lists11.md +2 -5
  77. data/tests/unittest/lists6.md +2 -3
  78. data/tests/unittest/lists9.md +2 -11
  79. data/tests/unittest/lists_after_paragraph.md +3 -51
  80. data/tests/unittest/lists_ol.md +2 -52
  81. data/tests/unittest/loss.md +2 -3
  82. data/tests/unittest/math/equations.md +54 -37
  83. data/tests/unittest/math/inline.md +4 -12
  84. data/tests/unittest/math/math2.md +4 -57
  85. data/tests/unittest/math/notmath.md +2 -5
  86. data/tests/unittest/math/table.md +5 -11
  87. data/tests/unittest/math/table2.md +2 -8
  88. data/tests/unittest/misc_sw.md +2 -80
  89. data/tests/unittest/notyet/escape.md +2 -5
  90. data/tests/unittest/notyet/header_after_par.md +2 -13
  91. data/tests/unittest/notyet/ticks.md +2 -3
  92. data/tests/unittest/notyet/triggering.md +2 -39
  93. data/tests/unittest/olist.md +2 -9
  94. data/tests/unittest/one.md +2 -3
  95. data/tests/unittest/paragraph.md +2 -3
  96. data/tests/unittest/paragraph_rules/dont_merge_ref.md +2 -5
  97. data/tests/unittest/paragraph_rules/tab_is_blank.md +2 -5
  98. data/tests/unittest/paragraphs.md +2 -10
  99. data/tests/unittest/pending/amps.md +2 -4
  100. data/tests/unittest/pending/empty_cells.md +2 -6
  101. data/tests/unittest/pending/link.md +2 -21
  102. data/tests/unittest/pending/ref.md +2 -3
  103. data/tests/unittest/recover/recover_links.md +7 -8
  104. data/tests/{bugs → unittest/red_tests}/abbrev.md +12 -103
  105. data/tests/unittest/{lists7.md → red_tests/lists7.md} +2 -13
  106. data/tests/unittest/{lists7b.md → red_tests/lists7b.md} +2 -10
  107. data/tests/unittest/{lists8.md → red_tests/lists8.md} +2 -9
  108. data/tests/unittest/red_tests/xml.md +70 -0
  109. data/tests/unittest/references/long_example.md +2 -7
  110. data/tests/unittest/references/spaces_and_numbers.md +2 -3
  111. data/tests/unittest/smartypants.md +2 -47
  112. data/tests/unittest/syntax_hl.md +2 -18
  113. data/tests/unittest/table_attributes.md +2 -8
  114. data/tests/unittest/test.md +2 -3
  115. data/tests/unittest/underscore_in_words.md +27 -0
  116. data/tests/unittest/wrapping.md +2 -11
  117. data/tests/unittest/xml2.md +2 -5
  118. data/tests/unittest/xml3.md +2 -8
  119. data/tests/unittest/xml_instruction.md +2 -10
  120. data/unit_test_span.sh +2 -1
  121. metadata +242 -241
  122. data/docs/changelog.html +0 -490
  123. data/docs/entity_test.html +0 -258
  124. data/docs/exd.html +0 -307
  125. data/docs/index.html +0 -332
  126. data/docs/markdown_syntax.html +0 -690
  127. data/docs/maruku.html +0 -332
  128. data/docs/proposal.html +0 -326
  129. data/docs/tmp.md +0 -2
  130. data/lib/sort_prof.rb +0 -22
  131. data/tests/bugs/links.md +0 -47
  132. data/tests/diagrams/diagrams.md +0 -302
  133. data/tests/s5/a.md +0 -13
  134. data/tests/s5/instiki+s5.md +0 -105
  135. data/tests/unittest/xml.md +0 -54
@@ -79,25 +79,6 @@ md_el(:document,[
79
79
 
80
80
 
81
81
  *** Output of Markdown.pl ***
82
- <p><a href="http://www.aa.com">http://www.aa.com</a></p>
83
-
84
- <p><a href="http://www.bb.com">http://www.bb.com</a></p>
85
-
86
- <p><a href="http://www.cc.com">http://www.cc.com</a></p>
87
-
88
- <p><a href="http://www.dd.com">http://www.dd.com</a></p>
89
-
90
- <pre><code>&lt;http://www.dd.com&gt;
91
- </code></pre>
92
-
93
- <p><a href="&#x6D;&#97;i&#108;&#116;&#111;:&#97;&#64;&#105;&#110;&#x76;&#x61;&#x6C;&#x69;&#x64;.&#x69;&#116;">&#97;&#64;&#105;&#110;&#x76;&#x61;&#x6C;&#x69;&#x64;.&#x69;&#116;</a></p>
94
-
95
- <p><a href="&#x6D;&#x61;&#105;&#x6C;&#116;&#x6F;:&#97;&#64;&#105;&#110;&#x76;&#97;&#x6C;&#x69;&#100;&#46;&#x69;&#116;">&#97;&#64;&#105;&#110;&#x76;&#97;&#x6C;&#x69;&#100;&#46;&#x69;&#116;</a></p>
96
-
97
- <p><a href="&#109;&#97;&#105;&#x6C;&#x74;&#111;:&#x61;&#64;&#105;&#x6E;&#x76;&#97;&#108;&#x69;&#100;&#x2E;&#x69;&#x74;">&#x61;&#64;&#105;&#x6E;&#x76;&#97;&#108;&#x69;&#100;&#x2E;&#x69;&#x74;</a></p>
98
-
99
- <pre><code>&lt;a@invalid.it&gt;
100
- </code></pre>
101
-
82
+ (not used anymore)
102
83
  *** Output of Markdown.pl (parsed) ***
103
- Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
84
+ (not used anymore)
@@ -28,7 +28,6 @@ a. b is a link.
28
28
 
29
29
 
30
30
  *** Output of Markdown.pl ***
31
- <p>[a. b] is a link.</p>
32
-
31
+ (not used anymore)
33
32
  *** Output of Markdown.pl (parsed) ***
34
- Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
33
+ (not used anymore)
@@ -4,15 +4,15 @@ This shows how Maruku recovers from parsing errors
4
4
  *** Markdown input: ***
5
5
  Search on [Google images][ GoOgle search ]
6
6
  *** Output of inspect ***
7
- md_el(:document,[md_par(["Search on Google imagesGoOgle search ]"])],{},[])
7
+ md_el(:document,[md_par(["Search on ", md_link(["Google images"],"google_search")])],{},[])
8
8
  *** Output of to_html ***
9
- <p>Search on Google imagesGoOgle search ]</p>
9
+ <p>Search on <span>Google images</span></p>
10
10
  *** Output of to_latex ***
11
- Search on Google imagesGoOgle search ]
11
+ Search on Google images
12
12
  *** Output of to_md ***
13
- Search on Google imagesGoOgle search ]
13
+ Search on Google images
14
14
  *** Output of to_s ***
15
- Search on Google imagesGoOgle search ]
15
+ Search on Google images
16
16
  *** EOF ***
17
17
 
18
18
 
@@ -22,7 +22,6 @@ Search on Google imagesGoOgle search ]
22
22
 
23
23
 
24
24
  *** Output of Markdown.pl ***
25
- <p>Search on [Google images][ GoOgle search ]</p>
26
-
25
+ (not used anymore)
27
26
  *** Output of Markdown.pl (parsed) ***
28
- Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
27
+ (not used anymore)
@@ -969,8 +969,8 @@ md_el(:document,[
969
969
  md_entity("rsquo"),
970
970
  "all."
971
971
  ]),
972
- md_ref_def("museo", "http://www.josbuivenga.demon.nl/museo.html>", {:title=>"Jos Buivenga"}),
973
- md_ref_def("diavlo", "http://www.josbuivenga.demon.nl/diavlo.html>", {:title=>"Jos Buivenga"}),
972
+ md_ref_def("museo", "http://www.josbuivenga.demon.nl/museo.html", {:title=>"Jos Buivenga"}),
973
+ md_ref_def("diavlo", "http://www.josbuivenga.demon.nl/diavlo.html", {:title=>"Jos Buivenga"}),
974
974
  md_el(:footnote,[
975
975
  md_par([
976
976
  "These are fonts by ",
@@ -998,8 +998,8 @@ md_el(:document,[
998
998
  ])
999
999
  ],{:footnote_id=>"^eot"},[]),
1000
1000
  md_el(:abbr_def,[],{:abbr=>"W3C",:text=>"World Wide Web Consortium"},[]),
1001
- md_ref_def("w3c", "http://w3c.org>", {:title=>"World Wide Web Consortium"}),
1002
- md_ref_def("spec", "http://?>", {:title=>nil}),
1001
+ md_ref_def("w3c", "http://w3c.org", {:title=>"World Wide Web Consortium"}),
1002
+ md_ref_def("spec", "http://?", {:title=>nil}),
1003
1003
  md_el(:abbr_def,[],{:abbr=>"DRY",:text=>"Don't Repeat Yourself"},[]),
1004
1004
  md_ref_def("jos", "jos", {:title=>nil})
1005
1005
  ],{},[])
@@ -1007,19 +1007,19 @@ md_el(:document,[
1007
1007
  -----| WARNING | -----
1008
1008
  <h1 id='webkit_safari_31_and_the_css_fontface_declaration'>WebKit (Safari 3.1) and the <abbr title='Cascading Style Sheets'>CSS</abbr> @font-face declaration</h1>
1009
1009
 
1010
- <p>I&#8217;m a big fan of typography in general. If you check out <a href='http://elliottcable.name'>my homepage</a> or my <a href='http://elliottcable.name/contact.xhtml'>contact elliottcable</a> page, and you&#8217;re using Safari/WebKit or Opera/Kestrel, you&#8217;ll notice the typefaces (fonts, as colloquialized) are <em>very</em> non-standard. (As of this writing, I&#8217;m using <a href='http://www.josbuivenga.demon.nl/museo.html&gt;' title='Jos Buivenga'>Museo</a> and <a href='http://www.josbuivenga.demon.nl/diavlo.html&gt;' title='Jos Buivenga'>Diavlo</a><sup id='fnref:1'><a href='#fn:1' rel='footnote'>1</a></sup> heavily on both.)</p>
1010
+ <p>I&#8217;m a big fan of typography in general. If you check out <a href='http://elliottcable.name'>my homepage</a> or my <a href='http://elliottcable.name/contact.xhtml'>contact elliottcable</a> page, and you&#8217;re using Safari/WebKit or Opera/Kestrel, you&#8217;ll notice the typefaces (fonts, as colloquialized) are <em>very</em> non-standard. (As of this writing, I&#8217;m using <a href='http://www.josbuivenga.demon.nl/museo.html' title='Jos Buivenga'>Museo</a> and <a href='http://www.josbuivenga.demon.nl/diavlo.html' title='Jos Buivenga'>Diavlo</a><sup id='fnref:1'><a href='#fn:1' rel='footnote'>1</a></sup> heavily on both.)</p>
1011
1011
 
1012
1012
  <p>The internet has not be a friendly place for typohiles like myself, up to this point, at least. One might even say it was a frightful, mentally scarring environment for those akin to yours truly. We&#8217;ve been restricted to reading page after page after page on day after day after day for year after year after year abominations of markup and design enslaved by the horrible overlords we know as Lucida, Verdana, Arial, Helvetica, Geneva, Georgia, Courier, and&#8230; dare I invoke ye, thou my terrible overlord? Times New Roman.</p>
1013
1013
 
1014
1014
  <p>Wherefore art thou, my glorious Archer? And thee as well, my beautiful Garamond? The technical restrictions of that horrible monster we know as the Web Browser hath forced us all too long to use those most banal, those most common, and those most abused, out of all of the typefaces of the world.</p>
1015
1015
 
1016
- <p>All hyperbole aside, I&#8217;m extremely happy to see the advent of a standard <code>@font-face</code> declaration in <abbr title='Cascading Style Sheets'>CSS</abbr>. Internet Explorer first implemented a crutched, basic version of this way back in version 4, but nothing ever really came of it - their decision to create the proprietary <abbr title='Embedded OpenType'>.EOT</abbr><sup id='fnref:2'><a href='#fn:2' rel='footnote'>2</a></sup> format to appease overly restrictive type foundries&#8217; worries about intellectual property (aka. the cold, hard dominatrix that we know only as Ms. Profit) truly and completely killed that initial attempt at bringing astute typography and it&#8217;s advocates to the web. This new run at <code>@font-face</code> by an established, trusted, and open group (the <a href='http://w3c.org&gt;' title='World Wide Web Consortium'><abbr title='World Wide Web Consortium'>W3C</abbr></a> itself, responsible for helping to make much of what we use as designers on the web standard and cross-system compatible) has a much better chance, in my humble opinion - and I am quite looking forward to the consequences if it succeeds.</p>
1016
+ <p>All hyperbole aside, I&#8217;m extremely happy to see the advent of a standard <code>@font-face</code> declaration in <abbr title='Cascading Style Sheets'>CSS</abbr>. Internet Explorer first implemented a crutched, basic version of this way back in version 4, but nothing ever really came of it - their decision to create the proprietary <abbr title='Embedded OpenType'>.EOT</abbr><sup id='fnref:2'><a href='#fn:2' rel='footnote'>2</a></sup> format to appease overly restrictive type foundries&#8217; worries about intellectual property (aka. the cold, hard dominatrix that we know only as Ms. Profit) truly and completely killed that initial attempt at bringing astute typography and it&#8217;s advocates to the web. This new run at <code>@font-face</code> by an established, trusted, and open group (the <a href='http://w3c.org' title='World Wide Web Consortium'><abbr title='World Wide Web Consortium'>W3C</abbr></a> itself, responsible for helping to make much of what we use as designers on the web standard and cross-system compatible) has a much better chance, in my humble opinion - and I am quite looking forward to the consequences if it succeeds.</p>
1017
1017
 
1018
1018
  <p>Now, onwards to the topic of my post as declared in the header (yes, I know, a slow start - but it&#8217;s an interesting topic with an interesting history!). WebKit, the open source rendering engine behind the wonderfulness that is Safari, and how it handles the &#8216;new&#8217; <code>@font-face</code> declaration. No, it&#8217;s not really &#8216;new&#8217;, but yes, it feels like it is.</p>
1019
1019
 
1020
1020
  <p>To put it simply, and to be very blunt, it&#8217;s broken.</p>
1021
1021
 
1022
- <p>The <a href='http://?&gt;'><abbr title='Cascading Style Sheets'>CSS</abbr> spec section</a> for <code>@font-face</code> is very specific - typefaces are to be selected based on a wide array of criteria placed in the <code>@font-face</code> declaration block itself. Various textual <abbr title='Cascading Style Sheets'>CSS</abbr> attributes may be defined within the <code>@font-face</code> declaration, and then they will be checked when the typeface is referred to later in the <abbr title='Cascading Style Sheets'>CSS</abbr>. For instance, if I have two <code>@font-face</code> declarations for the Diavlo family - one for regular text, and one for a heavier weighted version of the typeface - then I later utilize Diavlo in a <code>font-family:</code> attribute, it should refer to the basic Diavlo font defined in the first <code>@font-face</code>. However, if I were to do the same, but also specify a heavy <code>font-weight:</code>, then it should use the heavier version of Diavlo. To place this example in code:</p>
1022
+ <p>The <a href='http://?'><abbr title='Cascading Style Sheets'>CSS</abbr> spec section</a> for <code>@font-face</code> is very specific - typefaces are to be selected based on a wide array of criteria placed in the <code>@font-face</code> declaration block itself. Various textual <abbr title='Cascading Style Sheets'>CSS</abbr> attributes may be defined within the <code>@font-face</code> declaration, and then they will be checked when the typeface is referred to later in the <abbr title='Cascading Style Sheets'>CSS</abbr>. For instance, if I have two <code>@font-face</code> declarations for the Diavlo family - one for regular text, and one for a heavier weighted version of the typeface - then I later utilize Diavlo in a <code>font-family:</code> attribute, it should refer to the basic Diavlo font defined in the first <code>@font-face</code>. However, if I were to do the same, but also specify a heavy <code>font-weight:</code>, then it should use the heavier version of Diavlo. To place this example in code:</p>
1023
1023
 
1024
1024
  <pre><code>@font-face {
1025
1025
  font-family: &#39;Diavlo&#39;;
@@ -1103,19 +1103,19 @@ div#content {
1103
1103
  -----| WARNING | -----
1104
1104
  \hypertarget{webkit_safari_31_and_the_css_fontface_declaration}{}\section*{{WebKit (Safari 3.1) and the CSS @font-face declaration}}\label{webkit_safari_31_and_the_css_fontface_declaration}
1105
1105
 
1106
- I'{}m a big fan of typography in general. If you check out \href{http://elliottcable.name}{my homepage} or my \href{http://elliottcable.name/contact.xhtml}{contact elliottcable} page, and you'{}re using Safari/WebKit or Opera/Kestrel, you'{}ll notice the typefaces (fonts, as colloquialized) are \emph{very} non-standard. (As of this writing, I'{}m using \href{http://www.josbuivenga.demon.nl/museo.html>}{Museo} and \href{http://www.josbuivenga.demon.nl/diavlo.html>}{Diavlo}\footnote{These are fonts by \href{jos}{Jos Buivenga}, quite the amazing person. His (free) fonts are, uniquely, released for use on the web in {\colorbox[rgb]{1.00,0.93,1.00}{\tt \char64font\char45face}} declarations - unlike the vast majority of other (even free to download) typefaces, which have ridiculously restricting licenses and terms of use statements. Props, Jos - you'{}re a pioneer, and deserve recognition as such.} heavily on both.)
1106
+ I'{}m a big fan of typography in general. If you check out \href{http://elliottcable.name}{my homepage} or my \href{http://elliottcable.name/contact.xhtml}{contact elliottcable} page, and you'{}re using Safari/WebKit or Opera/Kestrel, you'{}ll notice the typefaces (fonts, as colloquialized) are \emph{very} non-standard. (As of this writing, I'{}m using \href{http://www.josbuivenga.demon.nl/museo.html}{Museo} and \href{http://www.josbuivenga.demon.nl/diavlo.html}{Diavlo}\footnote{These are fonts by \href{jos}{Jos Buivenga}, quite the amazing person. His (free) fonts are, uniquely, released for use on the web in {\colorbox[rgb]{1.00,0.93,1.00}{\tt \char64font\char45face}} declarations - unlike the vast majority of other (even free to download) typefaces, which have ridiculously restricting licenses and terms of use statements. Props, Jos - you'{}re a pioneer, and deserve recognition as such.} heavily on both.)
1107
1107
 
1108
1108
  The internet has not be a friendly place for typohiles like myself, up to this point, at least. One might even say it was a frightful, mentally scarring environment for those akin to yours truly. We'{}ve been restricted to reading page after page after page on day after day after day for year after year after year abominations of markup and design enslaved by the horrible overlords we know as Lucida, Verdana, Arial, Helvetica, Geneva, Georgia, Courier, and\ldots{} dare I invoke ye, thou my terrible overlord? Times New Roman.
1109
1109
 
1110
1110
  Wherefore art thou, my glorious Archer? And thee as well, my beautiful Garamond? The technical restrictions of that horrible monster we know as the Web Browser hath forced us all too long to use those most banal, those most common, and those most abused, out of all of the typefaces of the world.
1111
1111
 
1112
- All hyperbole aside, I'{}m extremely happy to see the advent of a standard {\colorbox[rgb]{1.00,0.93,1.00}{\tt \char64font\char45face}} declaration in CSS. Internet Explorer first implemented a crutched, basic version of this way back in version 4, but nothing ever really came of it - their decision to create the proprietary .EOT\footnote{To give Microsoft a little credit, something I rarely do\ldots{} Yes, I'{}m aware Microsoft submitted EOT to the W3C as a proposal - the problem isn'{}t with their attempts to make it non-proprietary, but with the basic concept of making typefaces on the web DRMed. Look what such attempts have done to the music and video industry - simply decimated it. Do we really want to see the same thing happen to our beloved medium as typography moves into the 21st century?} format to appease overly restrictive type foundries'{} worries about intellectual property (aka. the cold, hard dominatrix that we know only as Ms. Profit) truly and completely killed that initial attempt at bringing astute typography and it'{}s advocates to the web. This new run at {\colorbox[rgb]{1.00,0.93,1.00}{\tt \char64font\char45face}} by an established, trusted, and open group (the \href{http://w3c.org>}{W3C} itself, responsible for helping to make much of what we use as designers on the web standard and cross-system compatible) has a much better chance, in my humble opinion - and I am quite looking forward to the consequences if it succeeds.
1112
+ All hyperbole aside, I'{}m extremely happy to see the advent of a standard {\colorbox[rgb]{1.00,0.93,1.00}{\tt \char64font\char45face}} declaration in CSS. Internet Explorer first implemented a crutched, basic version of this way back in version 4, but nothing ever really came of it - their decision to create the proprietary .EOT\footnote{To give Microsoft a little credit, something I rarely do\ldots{} Yes, I'{}m aware Microsoft submitted EOT to the W3C as a proposal - the problem isn'{}t with their attempts to make it non-proprietary, but with the basic concept of making typefaces on the web DRMed. Look what such attempts have done to the music and video industry - simply decimated it. Do we really want to see the same thing happen to our beloved medium as typography moves into the 21st century?} format to appease overly restrictive type foundries'{} worries about intellectual property (aka. the cold, hard dominatrix that we know only as Ms. Profit) truly and completely killed that initial attempt at bringing astute typography and it'{}s advocates to the web. This new run at {\colorbox[rgb]{1.00,0.93,1.00}{\tt \char64font\char45face}} by an established, trusted, and open group (the \href{http://w3c.org}{W3C} itself, responsible for helping to make much of what we use as designers on the web standard and cross-system compatible) has a much better chance, in my humble opinion - and I am quite looking forward to the consequences if it succeeds.
1113
1113
 
1114
1114
  Now, onwards to the topic of my post as declared in the header (yes, I know, a slow start - but it'{}s an interesting topic with an interesting history!). WebKit, the open source rendering engine behind the wonderfulness that is Safari, and how it handles the `{}new'{} {\colorbox[rgb]{1.00,0.93,1.00}{\tt \char64font\char45face}} declaration. No, it'{}s not really `{}new'{}, but yes, it feels like it is.
1115
1115
 
1116
1116
  To put it simply, and to be very blunt, it'{}s broken.
1117
1117
 
1118
- The \href{http://?>}{CSS spec section} for {\colorbox[rgb]{1.00,0.93,1.00}{\tt \char64font\char45face}} is very specific - typefaces are to be selected based on a wide array of criteria placed in the {\colorbox[rgb]{1.00,0.93,1.00}{\tt \char64font\char45face}} declaration block itself. Various textual CSS attributes may be defined within the {\colorbox[rgb]{1.00,0.93,1.00}{\tt \char64font\char45face}} declaration, and then they will be checked when the typeface is referred to later in the CSS. For instance, if I have two {\colorbox[rgb]{1.00,0.93,1.00}{\tt \char64font\char45face}} declarations for the Diavlo family - one for regular text, and one for a heavier weighted version of the typeface - then I later utilize Diavlo in a {\colorbox[rgb]{1.00,0.93,1.00}{\tt font\char45family\char58}} attribute, it should refer to the basic Diavlo font defined in the first {\colorbox[rgb]{1.00,0.93,1.00}{\tt \char64font\char45face}}. However, if I were to do the same, but also specify a heavy {\colorbox[rgb]{1.00,0.93,1.00}{\tt font\char45weight\char58}}, then it should use the heavier version of Diavlo. To place this example in code:
1118
+ The \href{http://?}{CSS spec section} for {\colorbox[rgb]{1.00,0.93,1.00}{\tt \char64font\char45face}} is very specific - typefaces are to be selected based on a wide array of criteria placed in the {\colorbox[rgb]{1.00,0.93,1.00}{\tt \char64font\char45face}} declaration block itself. Various textual CSS attributes may be defined within the {\colorbox[rgb]{1.00,0.93,1.00}{\tt \char64font\char45face}} declaration, and then they will be checked when the typeface is referred to later in the CSS. For instance, if I have two {\colorbox[rgb]{1.00,0.93,1.00}{\tt \char64font\char45face}} declarations for the Diavlo family - one for regular text, and one for a heavier weighted version of the typeface - then I later utilize Diavlo in a {\colorbox[rgb]{1.00,0.93,1.00}{\tt font\char45family\char58}} attribute, it should refer to the basic Diavlo font defined in the first {\colorbox[rgb]{1.00,0.93,1.00}{\tt \char64font\char45face}}. However, if I were to do the same, but also specify a heavy {\colorbox[rgb]{1.00,0.93,1.00}{\tt font\char45weight\char58}}, then it should use the heavier version of Diavlo. To place this example in code:
1119
1119
 
1120
1120
  \begin{verbatim}@font-face {
1121
1121
  font-family: 'Diavlo';
@@ -1383,97 +1383,6 @@ typography moves into the 21st century?
1383
1383
  -----| WARNING | -----
1384
1384
  WebKit (Safari 3.1) and the CSS @font-face declarationIm a big fan of typography in general. If you check out my homepage or my contact elliottcable page, and youre using Safari/WebKit or Opera/Kestrel, youll notice the typefaces (fonts, as colloquialized) are very non-standard. (As of this writing, Im using Museo and Diavlo heavily on both.)The internet has not be a friendly place for typohiles like myself, up to this point, at least. One might even say it was a frightful, mentally scarring environment for those akin to yours truly. Weve been restricted to reading page after page after page on day after day after day for year after year after year abominations of markup and design enslaved by the horrible overlords we know as Lucida, Verdana, Arial, Helvetica, Geneva, Georgia, Courier, and dare I invoke ye, thou my terrible overlord? Times New Roman.Wherefore art thou, my glorious Archer? And thee as well, my beautiful Garamond? The technical restrictions of that horrible monster we know as the Web Browser hath forced us all too long to use those most banal, those most common, and those most abused, out of all of the typefaces of the world.All hyperbole aside, Im extremely happy to see the advent of a standard declaration in CSS. Internet Explorer first implemented a crutched, basic version of this way back in version 4, but nothing ever really came of it - their decision to create the proprietary .EOT format to appease overly restrictive type foundries worries about intellectual property (aka. the cold, hard dominatrix that we know only as Ms. Profit) truly and completely killed that initial attempt at bringing astute typography and its advocates to the web. This new run at by an established, trusted, and open group (the W3C itself, responsible for helping to make much of what we use as designers on the web standard and cross-system compatible) has a much better chance, in my humble opinion - and I am quite looking forward to the consequences if it succeeds.Now, onwards to the topic of my post as declared in the header (yes, I know, a slow start - but its an interesting topic with an interesting history!). WebKit, the open source rendering engine behind the wonderfulness that is Safari, and how it handles the new declaration. No, its not really new, but yes, it feels like it is.To put it simply, and to be very blunt, its broken.The CSS spec section for is very specific - typefaces are to be selected based on a wide array of criteria placed in the declaration block itself. Various textual CSS attributes may be defined within the declaration, and then they will be checked when the typeface is referred to later in the CSS. For instance, if I have two declarations for the Diavlo family - one for regular text, and one for a heavier weighted version of the typeface - then I later utilize Diavlo in a attribute, it should refer to the basic Diavlo font defined in the first . However, if I were to do the same, but also specify a heavy , then it should use the heavier version of Diavlo. To place this example in code:As you can see, my headings should use the typeface defined in , while my body content should use . However, in WebKit, this doesnt work - it completely ignores any attribute except and in a declaration! Completely ignores them! Not only that - not only that - it disregards all but the last for a given attribute string!The implication here is that, to make work as it is currently implemented in WebKit (and thus, Safari 3.1), I have to declare completely imaginary, non-existent type families to satisfy WebKit alone. Heres the method I have used in the places I current implement :Isnt it horrible? Seriously, my eyes, they bleed. Theres lots of problems with this far beyond the lack of semanticity when it comes to the typeface names let me see how many ways this breaks the purpose of :You remove a large element our control over the display of the page.As soon as we begin to use in our page, we can no longer make any use of any other textual control attribute - , , and are no longer available to us, because they no longer correctly map to technical typeface variant/features.Also, many default elements are destroyed, unusable, without fixing - for instance, would have no effect in a page styled for WebKit as above; We would have to specify something like - how broken is that? Unless we caught all such default elements and re-styled them to use the bastardized names instead of the correct attributes, lots of basic HTML formatting would be broken. I myself may never use in-document formatting (separation of design and content!), but what about comments forms? Forum posts? Direct HTML-literal quotes?If we want to use Javascript to modify the display of the content, we cant simply adjust the mentioned textual control attributes - we have to know and change the entire array of strings.You make us very wet.And by wet, I mean not DRY. What if we decide to change one of the bastardized font names? Or use a different font entirely? We have to go through all of our CSS, all of our Javascript, and make sure we update every occurrence of the typefaces bastardized name.You remove our users user choice, and waste bandwidth.Since the names refer to families that dont, in fact, exist, the browser cant override the declaration with a users installed version of the typeface. This means that, regardless of whether the user already has the typeface installed on their own computer, the browser wont use that - it doesnt know to use Diavlo, which the user has installed, because it was told to use Diavlo Black, which no user in the entire world has installed on their computer.This whole thing is rather worrying - Ive heard Opera has support, though I havent had time to test this myself, so I dont know if it actually does - or, for that matter, if it does it correctly, or has the same problems as WebKit. But either way, WebKit is one of the first two implementations to ever attempt to support (Microsofts unrelated declaration notwithstanding) - I really dont want to see its early mistakes carried on to FireFox in a few years, and then Internet Explorer a few decades after that. That will leave us stuck with this broken system forever, as it has been demonstrated time and time again that if nobody else supports an old standard correctly, a newcomer to the standard will not do it correctly either. I for one would really, really, hate that.In summary come on, WebKit team, this isnt like you - youre always the ones with the closest-to-standard implementation, and the cleanest code, and hell, overall? Webkit is the most secure/fastest browser available. But this is making me lose my faith in you, guys, please get it right. Youre pioneering a leap into the future when it comes to the Web - this is as important, or more important, than Mosiacs allowing of images was.To put it succinctly - dont fuck this up, yall.These are fonts by Jos Buivenga, quite the amazing person. His (free) fonts are, uniquely, released for use on the web in declarations - unlike the vast majority of other (even free to download) typefaces, which have ridiculously restricting licenses and terms of use statements. Props, Jos - youre a pioneer, and deserve recognition as such.To give Microsoft a little credit, something I rarely do Yes, Im aware Microsoft submitted EOT to the W3C as a proposal - the problem isnt with their attempts to make it non-proprietary, but with the basic concept of making typefaces on the web DRMed. Look what such attempts have done to the music and video industry - simply decimated it. Do we really want to see the same thing happen to our beloved medium as typography moves into the 21st century?
1385
1385
  *** Output of Markdown.pl ***
1386
- <h1>WebKit (Safari 3.1) and the CSS @font-face declaration</h1>
1387
-
1388
- <p>I'm a big fan of typography in general. If you check out <a href="http://elliottcable.name">my homepage</a> or my <a href="http://elliottcable.name/contact.xhtml">contact elliottcable</a> page, and you're using Safari/WebKit or Opera/Kestrel, you'll notice the typefaces (fonts, as colloquialized) are <em>very</em> non-standard. (As of this writing, I'm using <a href="http://www.josbuivenga.demon.nl/museo.html" title="Jos Buivenga's Museo free typeface">Museo</a> and <a href="http://www.josbuivenga.demon.nl/diavlo.html" title="Jos Buivenga's free Diavlo typeface">Diavlo</a>[^jos] heavily on both.)</p>
1389
-
1390
- <p>The internet has not be a friendly place for typohiles like myself, up to this point, at least. One might even say it was a frightful, mentally scarring environment for those akin to yours truly. We've been restricted to reading page after page after page on day after day after day for year after year after year abominations of markup and design enslaved by the horrible overlords we know as Lucida, Verdana, Arial, Helvetica, Geneva, Georgia, Courier, and... dare I invoke ye, thou my terrible overlord? Times New Roman.</p>
1391
-
1392
- <p>Wherefore art thou, my glorious Archer? And thee as well, my beautiful Garamond? The technical restrictions of that horrible monster we know as the Web Browser hath forced us all too long to use those most banal, those most common, and those most abused, out of all of the typefaces of the world.</p>
1393
-
1394
- <p>All hyperbole aside, I'm extremely happy to see the advent of a standard <code>@font-face</code> declaration in CSS. Internet Explorer first implemented a crutched, basic version of this way back in version 4, but nothing ever really came of it - their decision to create the proprietary .EOT[^eot] format to appease overly restrictive type foundries' worries about intellectual property (aka. the cold, hard dominatrix that we know only as Ms. Profit) truly and completely killed that initial attempt at bringing astute typography and it's advocates to the web. This new run at <code>@font-face</code> by an established, trusted, and open group (the <a href="http://w3c.org" title="World Wide Web Consortium">W3C</a> itself, responsible for helping to make much of what we use as designers on the web standard and cross-system compatible) has a much better chance, in my humble opinion - and I am quite looking forward to the consequences if it succeeds.</p>
1395
-
1396
- <p>Now, onwards to the topic of my post as declared in the header (yes, I know, a slow start - but it's an interesting topic with an interesting history!). WebKit, the open source rendering engine behind the wonderfulness that is Safari, and how it handles the 'new' <code>@font-face</code> declaration. No, it's not really 'new', but yes, it feels like it is.</p>
1397
-
1398
- <p>To put it simply, and to be very blunt, it's broken.</p>
1399
-
1400
- <p>The [CSS spec section][spec] for <code>@font-face</code> is very specific - typefaces are to be selected based on a wide array of criteria placed in the <code>@font-face</code> declaration block itself. Various textual CSS attributes may be defined within the <code>@font-face</code> declaration, and then they will be checked when the typeface is referred to later in the CSS. For instance, if I have two <code>@font-face</code> declarations for the Diavlo family - one for regular text, and one for a heavier weighted version of the typeface - then I later utilize Diavlo in a <code>font-family:</code> attribute, it should refer to the basic Diavlo font defined in the first <code>@font-face</code>. However, if I were to do the same, but also specify a heavy <code>font-weight:</code>, then it should use the heavier version of Diavlo. To place this example in code:</p>
1401
-
1402
- <pre><code>@font-face {
1403
- font-family: 'Diavlo';
1404
- src: url(./Diavlo/Diavlo_Book.otf) format("opentype");
1405
- }
1406
-
1407
- @font-face {
1408
- font-family: 'Diavlo';
1409
- font-weight: 900;
1410
- src: url(./Diavlo/Diavlo_Black.otf) format("opentype");
1411
- }
1412
-
1413
- h1, h2, h3, h4, h5, h6 {
1414
- font-family: 'Diavlo';
1415
- font-weight: 900;
1416
- }
1417
-
1418
- div#content {
1419
- font-family: 'Diavlo';
1420
- }
1421
- </code></pre>
1422
-
1423
- <p>As you can see, my headings should use the typeface defined in <code>Diavlo_Black.otf</code>, while my body content should use <code>Diavlo_Book.otf</code>. However, in WebKit, this doesn't work - it completely ignores any attribute except <code>font-family:</code> and <code>src:</code> in a <code>@font-face</code> declaration! Completely ignores them! Not only that - not <em>only</em> that - it disregards all but the last <code>@font-face</code> for a given <code>font-family:</code> attribute string!</p>
1424
-
1425
- <p>The implication here is that, to make <code>@font-face</code> work as it is currently implemented in WebKit (and thus, Safari 3.1), I have to declare <em>completely imaginary, non-existent type families</em> to satisfy WebKit alone. Here's the method I have used in the places I current implement <code>@font-face</code>:</p>
1426
-
1427
- <pre><code>@font-face {
1428
- font-family: 'Diavlo Book';
1429
- src: url(./Diavlo/Diavlo_Book.otf) format("opentype");
1430
- }
1431
-
1432
- @font-face {
1433
- font-family: 'Diavlo Black';
1434
- src: url(./Diavlo/Diavlo_Black.otf) format("opentype");
1435
- }
1436
-
1437
- h1, h2, h3, h4, h5, h6 {
1438
- font-family: 'Diavlo Black';
1439
- }
1440
-
1441
- div#content {
1442
- font-family: 'Diavlo Book';
1443
- }
1444
- </code></pre>
1445
-
1446
- <p>Isn't it horrible? Seriously, my eyes, they bleed. There's lots of problems with this far beyond the lack of semanticity when it comes to the typeface names... let me see how many ways this breaks the purpose of <code>@font-face</code>:</p>
1447
-
1448
- <ul>
1449
- <li><p>You remove a large element our control over the display of the page.</p>
1450
-
1451
- <p>As soon as we begin to use <code>@font-face</code> in our page, we can no longer make any use of any other textual control attribute - <code>font-weight:</code>, <code>font-style:</code>, and <code>font-variant:</code> are no longer available to us, because they no longer correctly map to technical typeface variant/features.</p>
1452
-
1453
- <p>Also, many default elements are destroyed, unusable, without 'fixing' - for instance, <code>&lt;b&gt;</code> would have no effect in a page styled for WebKit as above; We would have to specify something like <code>b {font-family: 'Diavlo Black';}</code> - how broken is that? Unless we caught all such default elements and re-styled them to use the bastardized names instead of the correct attributes, lots of basic HTML formatting would be broken. I myself may never use in-document formatting (separation of design and content!), but what about comments forms? Forum posts? Direct HTML-literal quotes?</p>
1454
-
1455
- <p>If we want to use Javascript to modify the display of the content, we can't simply adjust the mentioned textual control attributes - we have to know and change the entire <code>font-family:</code> array of strings.</p></li>
1456
- <li><p>You make us very wet.</p>
1457
-
1458
- <p>And by wet, I mean 'not DRY'. What if we decide to change one of the bastardized font names? Or use a different font entirely? We have to go through all of our CSS, all of our Javascript, and make sure we update every occurrence of the typeface's bastardized name.</p></li>
1459
- <li><p>You remove our user's user choice, and waste bandwidth.</p>
1460
-
1461
- <p>Since the names refer to families that don't, in fact, exist, the browser can't override the declaration with a user's installed version of the typeface. This means that, regardless of whether the user already has the typeface installed on their own computer, the browser won't use that - it doesn't know to use 'Diavlo', which the user has installed, because it was told to use 'Diavlo Black', which no user in the entire world has installed on their computer.</p></li>
1462
- </ul>
1463
-
1464
- <p>This whole thing is rather worrying - I've heard Opera has <code>@font-face</code> support, though I haven't had time to test this myself, so I don't know if it actually does - or, for that matter, if it does it 'correctly', or has the same problems as WebKit. But either way, WebKit is one of the first two implementations to ever attempt to support <code>@font-face</code> (Microsoft's unrelated <code>@font-face</code> declaration notwithstanding) - I really don't want to see it's early mistakes carried on to FireFox in a few years, and then Internet Explorer a few decades after that. That will leave us stuck with this broken system forever, as it has been demonstrated time and time again that if nobody else supports an old standard correctly, a newcomer to the standard will not do it correctly either. I for one would really, really, hate that.</p>
1465
-
1466
- <p>In summary... come on, WebKit team, this isn't like you - you're always the ones with the closest-to-standard implementation, and the cleanest code, and... hell, overall? Webkit is the most secure/fastest browser available. But this is making me lose my faith in you, guys, please get it right. You're pioneering a leap into the future when it comes to the Web - this is as important, or <em>more</em> important, than Mosiac's allowing of images was.</p>
1467
-
1468
- <p>To put it succinctly - don't fuck this up, y'all.</p>
1469
-
1470
- <p>[^jos]: These are fonts by <a href="jos">Jos Buivenga</a>, quite the amazing person. His (free) fonts are, uniquely, released for use on the web in <code>@font-face</code> declarations - unlike the vast majority of other (even free to download) typefaces, which have ridiculously restricting licenses and terms of use statements. Props, Jos - you're a pioneer, and deserve recognition as such.
1471
- *[CSS]: Cascading Style Sheets
1472
- *[.EOT]: Embedded OpenType
1473
- [^eot]: To give Microsoft a little credit, something I rarely do... Yes, I'm aware Microsoft submitted EOT to the W3C as a proposal - the problem isn't with their attempts to make it non-proprietary, but with the basic concept of making typefaces on the web DRMed. Look what such attempts have done to the music and video industry - simply decimated it. Do we really want to see the same thing happen to our beloved medium as typography moves into the 21st century?
1474
- *[W3C]: World Wide Web Consortium
1475
- [spec]: <a href="http://?">http://?</a> ()
1476
- *[DRY]: Don't Repeat Yourself</p>
1477
-
1386
+ (not used anymore)
1478
1387
  *** Output of Markdown.pl (parsed) ***
1479
- Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
1388
+ (not used anymore)
@@ -63,17 +63,6 @@ Ciao
63
63
  *** Output of to_s ***
64
64
  CiaoTab * Tab * Tab
65
65
  *** Output of Markdown.pl ***
66
- <p>Ciao</p>
67
-
68
- <ul>
69
- <li>Tab
70
- <ul>
71
- <li>Tab
72
- <ul>
73
- <li>Tab</li>
74
- </ul></li>
75
- </ul></li>
76
- </ul>
77
-
66
+ (not used anymore)
78
67
  *** Output of Markdown.pl (parsed) ***
79
- Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
68
+ (not used anymore)
@@ -123,14 +123,6 @@ md_el(:document,[
123
123
  *** Output of to_s ***
124
124
  aa1a2b
125
125
  *** Output of Markdown.pl ***
126
- <ul>
127
- <li>a
128
- <ul>
129
- <li>a1</li>
130
- <li>a2</li>
131
- </ul></li>
132
- <li>b</li>
133
- </ul>
134
-
126
+ (not used anymore)
135
127
  *** Output of Markdown.pl (parsed) ***
136
- Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
128
+ (not used anymore)
@@ -71,13 +71,6 @@ Here is a paragraph.
71
71
  -----| WARNING | -----
72
72
  Here is a paragraph.* Item 1 * Item 2 * Item 3
73
73
  *** Output of Markdown.pl ***
74
- <p>Here is a paragraph.</p>
75
-
76
- <ul>
77
- <li>Item 1</li>
78
- <li>Item 2</li>
79
- <li>Item 3</li>
80
- </ul>
81
-
74
+ (not used anymore)
82
75
  *** Output of Markdown.pl (parsed) ***
83
- Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
76
+ (not used anymore)
@@ -0,0 +1,70 @@
1
+ Write a comment here
2
+ *** Parameters: ***
3
+ {:on_error=>:raise}
4
+ *** Markdown input: ***
5
+
6
+ <img/>
7
+
8
+ <svg:svg/>
9
+
10
+ <svg:svg
11
+ width="600px" height="400px">
12
+ <svg:g id="group">
13
+ <svg:circle id="circ1" r="1cm" cx="3cm" cy="3cm" style="fill:red;"></svg:circle>
14
+ <svg:circle id="circ2" r="1cm" cx="7cm" cy="3cm" style="fill:red;" />
15
+ </svg:g>
16
+ </svg:svg>
17
+
18
+ *** Output of inspect ***
19
+ md_el(:document,[
20
+ md_html("<svg:svg/>"),
21
+ md_html("<svg:svg \nwidth=\"600px\" height=\"400px\">\n <svg:g id=\"group\">\n\t<svg:circle id=\"circ1\" r=\"1cm\" cx=\"3cm\" cy=\"3cm\" style=\"fill:red;\"></svg:circle>\n\t<svg:circle id=\"circ2\" r=\"1cm\" cx=\"7cm\" cy=\"3cm\" style=\"fill:red;\" />\n </svg:g>\n</svg:svg>")
22
+ ],{},[])
23
+ *** Output of to_html ***
24
+ <svg:svg /><svg:svg height='400px' width='600px'>
25
+ <svg:g id='group'>
26
+ <svg:circle cy='3cm' id='circ1' r='1cm' cx='3cm' style='fill:red;' />
27
+ <svg:circle cy='3cm' id='circ2' r='1cm' cx='7cm' style='fill:red;' />
28
+ </svg:g>
29
+ </svg:svg>
30
+ *** Output of to_latex ***
31
+
32
+ *** Output of to_md ***
33
+
34
+ *** Output of to_s ***
35
+
36
+ *** EOF ***
37
+
38
+
39
+
40
+
41
+ Failed tests: [:inspect, :to_html]
42
+
43
+ *** Output of inspect ***
44
+ -----| WARNING | -----
45
+ md_el(:document,[
46
+ md_html("<img />"),
47
+ md_html("<svg:svg/>"),
48
+ md_html("<svg:svg \nwidth=\"600px\" height=\"400px\">\n <svg:g id=\"group\">\n\t<svg:circle id=\"circ1\" r=\"1cm\" cx=\"3cm\" cy=\"3cm\" style=\"fill:red;\"></svg:circle>\n\t<svg:circle id=\"circ2\" r=\"1cm\" cx=\"7cm\" cy=\"3cm\" style=\"fill:red;\" />\n </svg:g>\n</svg:svg>")
49
+ ],{},[])
50
+ *** Output of to_html ***
51
+ -----| WARNING | -----
52
+ <img /><pre class='markdown-html-error' style='border: solid 3px red; background-color: pink'>REXML could not parse this XML/HTML:
53
+ &lt;svg:svg/&gt;</pre><pre class='markdown-html-error' style='border: solid 3px red; background-color: pink'>REXML could not parse this XML/HTML:
54
+ &lt;svg:svg
55
+ width=&quot;600px&quot; height=&quot;400px&quot;&gt;
56
+ &lt;svg:g id=&quot;group&quot;&gt;
57
+ &lt;svg:circle id=&quot;circ1&quot; r=&quot;1cm&quot; cx=&quot;3cm&quot; cy=&quot;3cm&quot; style=&quot;fill:red;&quot;&gt;&lt;/svg:circle&gt;
58
+ &lt;svg:circle id=&quot;circ2&quot; r=&quot;1cm&quot; cx=&quot;7cm&quot; cy=&quot;3cm&quot; style=&quot;fill:red;&quot; /&gt;
59
+ &lt;/svg:g&gt;
60
+ &lt;/svg:svg&gt;</pre>
61
+ *** Output of to_latex ***
62
+
63
+ *** Output of to_md ***
64
+
65
+ *** Output of to_s ***
66
+
67
+ *** Output of Markdown.pl ***
68
+ (not used anymore)
69
+ *** Output of Markdown.pl (parsed) ***
70
+ (not used anymore)
@@ -78,11 +78,6 @@ filters including Setext, atx, Textile, reStructuredText, Grutatext, and EtText
78
78
 
79
79
 
80
80
  *** Output of Markdown.pl ***
81
- <p>filters -- including <a href="http://docutils.sourceforge.net/mirror/setext.html">Setext</a>, <a href="http://www.aaronsw.com/2002/atx/">atx</a>, <a href="http://textism.com/tools/textile/">Textile</a>, <a href="http://docutils.sourceforge.net/rst.html">reStructuredText</a>,
82
- <a href="http://www.triptico.com/software/grutatxt.html">Grutatext</a>, and <a href="http://ettext.taint.org/doc/">EtText</a> -- the single biggest source of
83
- inspiration for Markdown's syntax is the format of plain text email.</p>
84
-
85
- <p>To this end, Markdown's syntax is comprised entirely of punctuation</p>
86
-
81
+ (not used anymore)
87
82
  *** Output of Markdown.pl (parsed) ***
88
- Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
83
+ (not used anymore)
@@ -22,7 +22,6 @@ md_el(:document,[md_ref_def("6", "http://ettext.taint.org/doc/", {:title=>nil})]
22
22
 
23
23
 
24
24
  *** Output of Markdown.pl ***
25
-
26
-
25
+ (not used anymore)
27
26
  *** Output of Markdown.pl (parsed) ***
28
- Error: #<NoMethodError: private method `write_children' called for <div/>:REXML::Element>
27
+ (not used anymore)
@@ -121,51 +121,6 @@ Twas a test to remember in the 90s.It was in a sense really interesting.I too
121
121
 
122
122
 
123
123
  *** Output of Markdown.pl ***
124
- <pre><code>'Twas a "test" to 'remember' in the '90s.
125
- </code></pre>
126
-
127
- <p>'Twas a "test" to 'remember' in the '90s.</p>
128
-
129
- <pre><code>It was --- in a sense --- really... interesting.
130
- </code></pre>
131
-
132
- <p>It was --- in a sense --- really... interesting.</p>
133
-
134
- <pre><code>I -- too -- met &lt;&lt; some curly quotes &gt;&gt; there or &lt;&lt;here&gt;&gt;No space.
135
- </code></pre>
136
-
137
- <p>I -- too -- met &lt;&lt; some curly quotes >> there or &lt;<here>>No space.</p>
138
-
139
- <pre><code>She was 6\"12\'.
140
- </code></pre>
141
-
142
- <blockquote>
143
- <p>She was 6\"12\'.</p>
144
- </blockquote>
145
-
124
+ (not used anymore)
146
125
  *** Output of Markdown.pl (parsed) ***
147
- Error: #<REXML::ParseException: #<REXML::ParseException: Missing end tag for 'here' (got "p")
148
- Line:
149
- Position:
150
- Last 80 unconsumed characters:
151
- <pre><code>She was 6\"12\'. </code></pre> <blockquote> <p>She was 6\"12\'.</>
152
- /Volumes/Alter/Ruby/local186/lib/ruby/1.8/rexml/parsers/baseparser.rb:320:in `pull'
153
- /Volumes/Alter/Ruby/local186/lib/ruby/1.8/rexml/parsers/treeparser.rb:21:in `parse'
154
- /Volumes/Alter/Ruby/local186/lib/ruby/1.8/rexml/document.rb:190:in `build'
155
- /Volumes/Alter/Ruby/local186/lib/ruby/1.8/rexml/document.rb:45:in `initialize'
156
- bin/marutest:199:in `new'
157
- bin/marutest:199:in `run_test'
158
- bin/marutest:262:in `marutest'
159
- bin/marutest:259:in `each'
160
- bin/marutest:259:in `marutest'
161
- bin/marutest:334
162
- ...
163
- Missing end tag for 'here' (got "p")
164
- Line:
165
- Position:
166
- Last 80 unconsumed characters:
167
- <pre><code>She was 6\"12\'. </code></pre> <blockquote> <p>She was 6\"12\'.</
168
- Line:
169
- Position:
170
- Last 80 unconsumed characters:
171
- <pre><code>She was 6\"12\'. </code></pre> <blockquote> <p>She was 6\"12\'.</>
126
+ (not used anymore)
@@ -59,22 +59,6 @@ This is ruby code:This is ruby code:
59
59
 
60
60
 
61
61
  *** Output of Markdown.pl ***
62
- <p>This is ruby code:</p>
63
-
64
- <pre><code>require 'maruku'
65
-
66
- puts Maruku.new($stdin).to_html
67
- </code></pre>
68
-
69
- <p>This is ruby code:</p>
70
-
71
- <pre><code>require 'maruku'
72
- </code></pre>
73
-
74
- <p>{: lang=ruby html<em>use</em>syntax}</p>
75
-
76
- <pre><code>puts Maruku.new($stdin).to_html
77
- </code></pre>
78
-
62
+ (not used anymore)
79
63
  *** Output of Markdown.pl (parsed) ***
80
- Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
64
+ (not used anymore)