maruku 0.4.2.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. data/bin/maruku +66 -20
  2. data/bin/marutest +12 -2
  3. data/docs/changelog.html +188 -23
  4. data/docs/changelog.md +128 -5
  5. data/docs/entity_test.html +245 -240
  6. data/docs/entity_test.md +2 -0
  7. data/docs/exd.html +181 -23
  8. data/docs/index.html +130 -349
  9. data/docs/markdown_syntax.html +55 -51
  10. data/docs/maruku.html +130 -349
  11. data/docs/maruku.md +154 -339
  12. data/docs/math.md +143 -0
  13. data/docs/proposal.html +16 -12
  14. data/lib/maruku.rb +6 -3
  15. data/lib/maruku/attributes.rb +7 -2
  16. data/lib/maruku/defaults.rb +27 -27
  17. data/lib/maruku/errors_management.rb +10 -9
  18. data/lib/maruku/ext/diagrams/diagrams.rb +8 -0
  19. data/lib/maruku/ext/diagrams/grid.rb +78 -0
  20. data/lib/maruku/ext/diagrams/inspect.rb +11 -0
  21. data/lib/maruku/ext/diagrams/layout.rb +105 -0
  22. data/lib/maruku/ext/diagrams/parser.rb +219 -0
  23. data/lib/maruku/ext/diagrams/structures.rb +168 -0
  24. data/lib/maruku/ext/diagrams/to_html.rb +37 -0
  25. data/lib/maruku/ext/diagrams/to_latex.rb +308 -0
  26. data/lib/maruku/ext/diagrams/unittest.rb +123 -0
  27. data/lib/maruku/ext/math.rb +11 -0
  28. data/lib/maruku/ext/math/elements.rb +26 -0
  29. data/lib/maruku/ext/math/mathml_engines/blahtex.rb +108 -0
  30. data/lib/maruku/ext/math/mathml_engines/itex2mml.rb +29 -0
  31. data/lib/maruku/ext/math/mathml_engines/none.rb +20 -0
  32. data/lib/maruku/ext/math/mathml_engines/ritex.rb +24 -0
  33. data/lib/maruku/ext/math/parsing.rb +82 -0
  34. data/lib/maruku/ext/math/to_html.rb +178 -0
  35. data/lib/maruku/ext/math/to_latex.rb +21 -0
  36. data/lib/maruku/helpers.rb +11 -0
  37. data/lib/maruku/input/charsource.rb +1 -1
  38. data/lib/maruku/input/extensions.rb +68 -0
  39. data/lib/maruku/input/html_helper.rb +91 -60
  40. data/lib/maruku/input/parse_block.rb +10 -9
  41. data/lib/maruku/input/parse_doc.rb +21 -13
  42. data/lib/maruku/input/parse_span_better.rb +19 -8
  43. data/lib/maruku/input/type_detection.rb +5 -3
  44. data/lib/maruku/output/to_html.rb +236 -67
  45. data/lib/maruku/output/to_latex.rb +69 -26
  46. data/lib/maruku/output/to_latex_entities.rb +14 -2
  47. data/lib/maruku/output/to_s.rb +8 -0
  48. data/lib/maruku/structures.rb +1 -1
  49. data/lib/maruku/tests/benchmark.rb +2 -2
  50. data/lib/maruku/tests/new_parser.rb +13 -5
  51. data/lib/maruku/version.rb +1 -1
  52. data/lib/sort_prof.rb +22 -0
  53. data/tests/diagrams/diagrams.md +54 -0
  54. data/tests/math/syntax.md +46 -0
  55. data/tests/math_usage/document.md +13 -0
  56. data/tests/unittest/attributes/attributes.md +50 -6
  57. data/tests/unittest/easy.md +1 -1
  58. data/tests/unittest/email.md +3 -3
  59. data/tests/unittest/entities.md +12 -7
  60. data/tests/unittest/escaping.md +4 -4
  61. data/tests/unittest/extra_table1.md +3 -1
  62. data/tests/unittest/footnotes.md +5 -5
  63. data/tests/unittest/headers.md +3 -3
  64. data/tests/unittest/images.md +7 -7
  65. data/tests/unittest/inline_html.md +51 -5
  66. data/tests/unittest/links.md +7 -7
  67. data/tests/unittest/list2.md +1 -1
  68. data/tests/unittest/lists.md +1 -1
  69. data/tests/unittest/lists_after_paragraph.md +1 -1
  70. data/tests/unittest/lists_ol.md +1 -1
  71. data/tests/unittest/math/equations.md +82 -0
  72. data/tests/unittest/math/inline.md +80 -0
  73. data/tests/unittest/math/table.md +51 -0
  74. data/tests/unittest/math/table2.md +67 -0
  75. data/tests/unittest/misc_sw.md +24 -24
  76. data/tests/unittest/notyet/ticks.md +1 -1
  77. data/tests/unittest/references/long_example.md +2 -2
  78. data/tests/unittest/smartypants.md +4 -4
  79. data/tests/unittest/xml.md +68 -0
  80. data/tests/unittest/xml2.md +36 -0
  81. data/tests/unittest/xml3.md +52 -0
  82. data/tests/unittest/xml_instruction.md +5 -5
  83. metadata +33 -4
  84. data/docs/a.html +0 -6
  85. data/docs/char.html +0 -1924
@@ -0,0 +1,80 @@
1
+
2
+ *** Parameters: ***
3
+ require 'maruku/ext/math'; {}
4
+ *** Markdown input: ***
5
+ Here are some formulas:
6
+
7
+ * $\alpha$
8
+ * $x^{n}+y^{n} \neq z^{n}$
9
+
10
+ That's it, nothing else is supported.
11
+
12
+ *** Output of inspect ***
13
+ md_el(:document,[
14
+ md_par(["Here are some formulas:"]),
15
+ md_el(:ul,[
16
+ md_el(:li_span,[md_el(:inline_math,[],{:math=>"\\alpha"},[])],{:want_my_paragraph=>false},[]),
17
+ md_el(:li_span,[md_el(:inline_math,[],{:math=>"x^{n}+y^{n} \\neq z^{n}"},[])],{:want_my_paragraph=>false},[])
18
+ ],{},[]),
19
+ md_par(["That", md_entity("rsquo"), "s it, nothing else is supported."])
20
+ ],{},[])
21
+ *** Output of to_html ***
22
+
23
+ <p>Here are some formulas:</p>
24
+
25
+ <ul>
26
+ <li><span class='maruku-inline'><code class='maruku-mathml'>\alpha</code></span></li>
27
+
28
+ <li><span class='maruku-inline'><code class='maruku-mathml'>x^{n}+y^{n} \neq z^{n}</code></span></li>
29
+ </ul>
30
+
31
+ <p>That&#8217;s it, nothing else is supported.</p>
32
+
33
+ *** Output of to_latex ***
34
+ Here are some formulas:
35
+
36
+ \begin{itemize}%
37
+ \item $\alpha$
38
+ \item $x^{n}+y^{n} \neq z^{n}$
39
+
40
+ \end{itemize}
41
+ That's it, nothing else is supported.
42
+
43
+
44
+ *** Output of to_md ***
45
+ Here are some formulas:
46
+
47
+ --
48
+ That s it, nothing else is supported.
49
+
50
+
51
+ *** Output of to_s ***
52
+ Here are some formulas:Thats it, nothing else is supported.
53
+ *** EOF ***
54
+
55
+
56
+
57
+ OK!
58
+
59
+
60
+
61
+ *** Output of Markdown.pl ***
62
+ <p>Here are some formulas:</p>
63
+
64
+ <ul>
65
+ <li>$\alpha$</li>
66
+ <li>$x^{n}+y^{n} \neq z^{n}$</li>
67
+ </ul>
68
+
69
+ <p>That's it, nothing else is supported.</p>
70
+
71
+ *** Output of Markdown.pl (parsed) ***
72
+ <p>Here are some formulas:</p
73
+ ><ul>
74
+ <li>$\alpha$</li
75
+ >
76
+ <li>$x^{n}+y^{n} \neq z^{n}$</li
77
+ >
78
+ </ul
79
+ ><p>That's it, nothing else is supported.</p
80
+ >
@@ -0,0 +1,51 @@
1
+ Write a comment here
2
+ *** Parameters: ***
3
+ {}
4
+ *** Markdown input: ***
5
+ <table markdown='1'>
6
+ $\alpha$
7
+ <thead>
8
+ <td>$\beta$</td>
9
+ </thead>
10
+ </table>
11
+ *** Output of inspect ***
12
+ md_el(:document,[
13
+ md_html("<table markdown='1'>\n\t$\\alpha$\n\t<thead>\n\t\t<td>$\\beta$</td>\n\t</thead>\n</table>")
14
+ ],{},[])
15
+ *** Output of to_html ***
16
+ <table><span class='maruku-inline'><code class='maruku-mathml'>\alpha</code></span><thead>
17
+ <td><span class='maruku-inline'><code class='maruku-mathml'>\beta</code></span></td>
18
+ </thead>
19
+ </table>
20
+ *** Output of to_latex ***
21
+
22
+ *** Output of to_md ***
23
+
24
+ *** Output of to_s ***
25
+
26
+ *** EOF ***
27
+
28
+
29
+
30
+ OK!
31
+
32
+
33
+
34
+ *** Output of Markdown.pl ***
35
+ <table markdown='1'>
36
+ $\alpha$
37
+ <thead>
38
+ <td>$\beta$</td>
39
+ </thead>
40
+ </table>
41
+
42
+ *** Output of Markdown.pl (parsed) ***
43
+ <table markdown='1'>
44
+ $\alpha$
45
+ <thead>
46
+ <td>$\beta$</td
47
+ >
48
+ </thead
49
+ >
50
+ </table
51
+ >
@@ -0,0 +1,67 @@
1
+ Write a comment here
2
+ *** Parameters: ***
3
+ {}
4
+ *** Markdown input: ***
5
+
6
+ Symbol | Meaning | comments
7
+ ------------|---------|---------
8
+ {:r} &alpha; | The first | I like it.
9
+ {:r} &aleph; | The first | I like it.
10
+
11
+
12
+ {:r: scope='row'}
13
+ *** Output of inspect ***
14
+ md_el(:document,[
15
+ md_el(:table,[
16
+ md_el(:head_cell,["Symbol"],{},[]),
17
+ md_el(:head_cell,["Meaning"],{},[]),
18
+ md_el(:head_cell,["comments"],{},[]),
19
+ md_el(:cell,[" ", md_entity("alpha")],{},[[:ref, "r"]]),
20
+ md_el(:cell,["The first"],{},[]),
21
+ md_el(:cell,["I like it."],{},[]),
22
+ md_el(:cell,[" ", md_entity("aleph")],{},[[:ref, "r"]]),
23
+ md_el(:cell,["The first"],{},[]),
24
+ md_el(:cell,["I like it."],{},[])
25
+ ],{:align=>[:left, :left, :left]},[]),
26
+ md_el(:ald,[],{:ald=>[["scope", "row"]],:ald_id=>"r"},[])
27
+ ],{},[])
28
+ *** Output of to_html ***
29
+ <table><thead><tr><th>Symbol</th><th>Meaning</th><th>comments</th></tr></thead><tbody><tr><th scope='row' style='text-align: left;'> &#945;</th><td style='text-align: left;'>The first</td><td style='text-align: left;'>I like it.</td>
30
+ </tr><tr><th scope='row' style='text-align: left;'> &aleph;</th><td style='text-align: left;'>The first</td><td style='text-align: left;'>I like it.</td>
31
+ </tr></tbody></table>
32
+ *** Output of to_latex ***
33
+ \begin{tabular}{l|l|l}
34
+ Symbol&Meaning&comments\\
35
+ \hline
36
+ $\alpha$&The first&I like it.\\
37
+ &The first&I like it.\\
38
+ \end{tabular}
39
+
40
+
41
+ *** Output of to_md ***
42
+ SymbolMeaningcomments The firstI like it. The firstI like it.
43
+ *** Output of to_s ***
44
+ SymbolMeaningcomments The firstI like it. The firstI like it.
45
+ *** EOF ***
46
+
47
+
48
+
49
+ OK!
50
+
51
+
52
+
53
+ *** Output of Markdown.pl ***
54
+ <p>Symbol | Meaning | comments
55
+ ------------|---------|---------
56
+ {:r} &alpha; | The first | I like it.
57
+ {:r} &aleph; | The first | I like it.</p>
58
+
59
+ <p>{:r: scope='row'}</p>
60
+
61
+ *** Output of Markdown.pl (parsed) ***
62
+ <p>Symbol | Meaning | comments
63
+ ------------|---------|---------
64
+ {:r} &alpha; | The first | I like it.
65
+ {:r} &aleph; | The first | I like it.</p
66
+ ><p>{:r: scope='row'}</p
67
+ >
@@ -1,6 +1,6 @@
1
1
  Write a comment abouth the test here.
2
2
  *** Parameters: ***
3
- {:date=>"Nov 20 2006", :subject=>"Software not painful to use", :archive=>false, :inmenu=>true, :subject_short=>"painless software", :topic=>"/misc/coolsw", :order=>"-9.5"}
3
+ {:archive=>false, :date=>"Nov 20 2006", :inmenu=>true, :subject_short=>"painless software", :subject=>"Software not painful to use", :topic=>"/misc/coolsw", :order=>"-9.5"}
4
4
  *** Markdown input: ***
5
5
  Subject: Software not painful to use
6
6
  Subject_short: painless software
@@ -341,9 +341,9 @@ md_el(:document,[
341
341
 
342
342
  <li><em>Browser</em>: <a href='http://getfirefox.com/'>Firefox</a>. On a Mac, <a href='http://www.caminobrowser.org/'>Camino</a>.</li>
343
343
 
344
- <li><em>Email</em>: <a href='http://gmail.com/'>GMail</a>, &ldquo;search, don&rsquo;t sort&rdquo; really works.</li>
344
+ <li><em>Email</em>: <a href='http://gmail.com/'>GMail</a>, &#8220;search, don&#8217;t sort&#8221; really works.</li>
345
345
 
346
- <li><em>Text Editor</em>: <a href='http://www.apple.com/getamac/'>TextMate</a>, you have to buy it, but it&rsquo;s worth every penny. There are rumours that it&rsquo;s been converting (recovering) Emacs users (addicts). Unfortunately, it&rsquo;s Mac only. An alternative is <a href='http://www.jedit.org/'>jedit</a> (GPL, Java).</li>
346
+ <li><em>Text Editor</em>: <a href='http://www.apple.com/getamac/'>TextMate</a>, you have to buy it, but it&#8217;s worth every penny. There are rumours that it&#8217;s been converting (recovering) Emacs users (addicts). Unfortunately, it&#8217;s Mac only. An alternative is <a href='http://www.jedit.org/'>jedit</a> (GPL, Java).</li>
347
347
  </ul>
348
348
 
349
349
  <h3 id='development'>Development</h3>
@@ -376,7 +376,7 @@ Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;licen
376
376
  </li>
377
377
 
378
378
  <li>
379
- <p><em>Mark-up language</em>: HTML is so 2001, why don&rsquo;t you take at look at <a href='http://en.wikipedia.org/wiki/Markdown'>Markdown</a>? <a href='data/misc_markdown.png'>Look at the source of this page</a>.</p>
379
+ <p><em>Mark-up language</em>: HTML is so 2001, why don&#8217;t you take at look at <a href='http://en.wikipedia.org/wiki/Markdown'>Markdown</a>? <a href='data/misc_markdown.png'>Look at the source of this page</a>.</p>
380
380
  </li>
381
381
 
382
382
  <li>
@@ -416,25 +416,25 @@ Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;licen
416
416
  \hypertarget{general}{}\subsubsection*{{General}}\label{general}
417
417
 
418
418
  \begin{itemize}%
419
- \item {\em Operating System} : \href{http://www.apple.com/getamac/}{Mac OS X}: heaven, after the purgatory of Linux and the hell of Windows.
420
- \item {\em Browser}: \href{http://getfirefox.com/}{Firefox}. On a Mac, \href{http://www.caminobrowser.org/}{Camino}.
421
- \item {\em Email}: \href{http://gmail.com/}{GMail}, ``search, don't sort'' really works.
422
- \item {\em Text Editor}: \href{http://www.apple.com/getamac/}{TextMate}, you have to buy it, but it's worth every penny. There are rumours that it's been converting (recovering) Emacs users (addicts). Unfortunately, it's Mac only. An alternative is \href{http://www.jedit.org/}{jedit} (GPL, Java).
419
+ \item \emph{Operating System} : \href{http://www.apple.com/getamac/}{Mac OS X}: heaven, after the purgatory of Linux and the hell of Windows.
420
+ \item \emph{Browser}: \href{http://getfirefox.com/}{Firefox}. On a Mac, \href{http://www.caminobrowser.org/}{Camino}.
421
+ \item \emph{Email}: \href{http://gmail.com/}{GMail}, ``search, don't sort'' really works.
422
+ \item \emph{Text Editor}: \href{http://www.apple.com/getamac/}{TextMate}, you have to buy it, but it's worth every penny. There are rumours that it's been converting (recovering) Emacs users (addicts). Unfortunately, it's Mac only. An alternative is \href{http://www.jedit.org/}{jedit} (GPL, Java).
423
423
 
424
424
  \end{itemize}
425
425
  \hypertarget{development}{}\subsubsection*{{Development}}\label{development}
426
426
 
427
427
  \begin{itemize}%
428
- \item {\em Build system}: \href{http://www.cmake.org/}{cmake}, throw the \href{http://sources.redhat.com/autobook/}{autotools} away.
428
+ \item \emph{Build system}: \href{http://www.cmake.org/}{cmake}, throw the \href{http://sources.redhat.com/autobook/}{autotools} away.
429
429
 
430
430
 
431
- \item {\em Source code control system}: ditch CVS for \href{http://subversion.tigris.org}{subversion}.
431
+ \item \emph{Source code control system}: ditch CVS for \href{http://subversion.tigris.org}{subversion}.
432
432
 
433
433
 
434
- \item {\em Project management}: \href{http://trac.edgewall.org/}{Trac} tracks everything.
434
+ \item \emph{Project management}: \href{http://trac.edgewall.org/}{Trac} tracks everything.
435
435
 
436
436
 
437
- \item {\em Scripting language}: \href{http://www.ruby-lang.org/}{Ruby} is Japanese pragmatism (and has a \href{http://poignantguide.net/ruby/}{poignant} guide). Python, you say? Python is too academic and snob:
437
+ \item \emph{Scripting language}: \href{http://www.ruby-lang.org/}{Ruby} is Japanese pragmatism (and has a \href{http://poignantguide.net/ruby/}{poignant} guide). Python, you say? Python is too academic and snob:
438
438
 
439
439
  \begin{verbatim}$ python
440
440
  Python 2.4.1 (\#1, Jun 4 2005, 00:54:33)
@@ -444,13 +444,13 @@ Type "help", "copyright", "credits" or "license" for more information.
444
444
  >>> quit
445
445
  'Use Ctrl-D (i.e. EOF) to exit.'\end{verbatim}
446
446
 
447
- \item {\em Java IDE}: \href{http://www.borland.com/us/products/jbuilder/index.html}{JBuilder} is great software and has a free version (IMHO better than Eclipse). Java is not a pain anymore since it gained \href{http://java.sun.com/j2se/1.5.0/docs/guide/language/generics.html}{generics} and got opensourced.
447
+ \item \emph{Java IDE}: \href{http://www.borland.com/us/products/jbuilder/index.html}{JBuilder} is great software and has a free version (IMHO better than Eclipse). Java is not a pain anymore since it gained \href{http://java.sun.com/j2se/1.5.0/docs/guide/language/generics.html}{generics} and got opensourced.
448
448
 
449
449
 
450
- \item {\em Mark-up language}: HTML is so 2001, why don't you take at look at \href{http://en.wikipedia.org/wiki/Markdown}{Markdown}? \href{data/misc_markdown.png}{Look at the source of this page}.
450
+ \item \emph{Mark-up language}: HTML is so 2001, why don't you take at look at \href{http://en.wikipedia.org/wiki/Markdown}{Markdown}? \href{data/misc_markdown.png}{Look at the source of this page}.
451
451
 
452
452
 
453
- \item {\em C++ libraries}: * \href{http://www.trolltech.no/}{QT} for GUIs. * \href{http://www.gnu.org/software/gsl/}{GSL} for math. * \href{http://www.imagemagick.org/Magick++/}{Magick++} for manipulating images. * \href{http://cairographics.org/}{Cairo} for creating PDFs. * \href{http://www.boost.org/}{Boost} for just about everything else.
453
+ \item \emph{C++ libraries}: * \href{http://www.trolltech.no/}{QT} for GUIs. * \href{http://www.gnu.org/software/gsl/}{GSL} for math. * \href{http://www.imagemagick.org/Magick++/}{Magick++} for manipulating images. * \href{http://cairographics.org/}{Cairo} for creating PDFs. * \href{http://www.boost.org/}{Boost} for just about everything else.
454
454
 
455
455
 
456
456
 
@@ -458,21 +458,21 @@ Type "help", "copyright", "credits" or "license" for more information.
458
458
  \hypertarget{research}{}\subsubsection*{{Research}}\label{research}
459
459
 
460
460
  \begin{itemize}%
461
- \item {\em Writing papers}: \href{http://en.wikipedia.org/wiki/LaTeX}{LaTeX}
462
- \item {\em Writing papers \& enjoying the process}: \href{http://www.lyx.org}{LyX}
463
- \item {\em Handsome figures in your papers}: \href{http://www.xfig.org/}{xfig} or, better, \href{http://tams-www.informatik.uni-hamburg.de/applets/jfig/}{jfig}.
464
- \item {\em The occasional presentation with many graphical content}: \href{http://www.openoffice.org/product/impress.html}{OpenOffice Impress} (using the \href{http://ooolatex.sourceforge.net/}{OOOlatex plugin}); the alternative is PowerPoint with the \href{http://texpoint.necula.org/}{TexPoint} plugin.
465
- \item {\em Managing BibTeX}: \href{http://jabref.sourceforge.net/}{jabref}: multi-platform, for all your bibtex needs.
466
- \item {\em IEEExplore and BibTeX}: convert citations using \href{http://www.bibconverter.net/ieeexplore/}{BibConverter}.
461
+ \item \emph{Writing papers}: \href{http://en.wikipedia.org/wiki/LaTeX}{LaTeX}
462
+ \item \emph{Writing papers \& enjoying the process}: \href{http://www.lyx.org}{LyX}
463
+ \item \emph{Handsome figures in your papers}: \href{http://www.xfig.org/}{xfig} or, better, \href{http://tams-www.informatik.uni-hamburg.de/applets/jfig/}{jfig}.
464
+ \item \emph{The occasional presentation with many graphical content}: \href{http://www.openoffice.org/product/impress.html}{OpenOffice Impress} (using the \href{http://ooolatex.sourceforge.net/}{OOOlatex plugin}); the alternative is PowerPoint with the \href{http://texpoint.necula.org/}{TexPoint} plugin.
465
+ \item \emph{Managing BibTeX}: \href{http://jabref.sourceforge.net/}{jabref}: multi-platform, for all your bibtex needs.
466
+ \item \emph{IEEExplore and BibTeX}: convert citations using \href{http://www.bibconverter.net/ieeexplore/}{BibConverter}.
467
467
 
468
468
  \end{itemize}
469
469
  \hypertarget{cool_websites}{}\subsubsection*{{Cool websites}}\label{cool_websites}
470
470
 
471
471
  \begin{itemize}%
472
- \item {\em Best site in the wwworld}: \href{http://en.wikipedia.org/}{Wikipedia}
472
+ \item \emph{Best site in the wwworld}: \href{http://en.wikipedia.org/}{Wikipedia}
473
473
  \item \href{http://www.mutopiaproject.org/}{Mutopia} for sheet music; \href{http://www.gutenberg.org/}{the Gutenberg Project} for books; \href{http://www.liberliber.it/}{LiberLiber} for books in italian.
474
- \item {\em Blogs}: \href{http://bloglines.com/}{Bloglines}
475
- \item {\em Sharing photos}: \href{http://www.flickr.com/}{flickr} exposes an API you can use.
474
+ \item \emph{Blogs}: \href{http://bloglines.com/}{Bloglines}
475
+ \item \emph{Sharing photos}: \href{http://www.flickr.com/}{flickr} exposes an API you can use.
476
476
 
477
477
  \end{itemize}
478
478
 
@@ -13,7 +13,7 @@ md_el(:document,[md_par([md_code("There is a literal backtick (`) here.")])],{},
13
13
  <p><code>There is a literal backtick (`) here.</code></p>
14
14
 
15
15
  *** Output of to_latex ***
16
- \colorbox[rgb]{1.00,0.93,1.00}{\tt \char84\char104\char101\char114\char101\char32\char105\char115\char32\char97\char32\char108\char105\char116\char101\char114\char97\char108\char32\char98\char97\char99\char107\char116\char105\char99\char107\char32\char40\char96\char41\char32\char104\char101\char114\char101\char46}
16
+ \colorbox[rgb]{1.00,0.93,1.00}{\tt There~is~a~literal~backtick~\char40\char96\char41~here\char46}
17
17
 
18
18
 
19
19
  *** Output of to_md ***
@@ -52,9 +52,9 @@ md_el(:document,[
52
52
  ],{},[])
53
53
  *** Output of to_html ***
54
54
 
55
- <p>filters &ndash; 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>, <a href='http://www.triptico.com/software/grutatxt.html'>Grutatext</a>, and <a href='http://ettext.taint.org/doc/'>EtText</a> &ndash; the single biggest source of inspiration for Markdown&rsquo;s syntax is the format of plain text email.</p>
55
+ <p>filters &#8211; 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>, <a href='http://www.triptico.com/software/grutatxt.html'>Grutatext</a>, and <a href='http://ettext.taint.org/doc/'>EtText</a> &#8211; the single biggest source of inspiration for Markdown&#8217;s syntax is the format of plain text email.</p>
56
56
 
57
- <p>To this end, Markdown&rsquo;s syntax is comprised entirely of punctuation</p>
57
+ <p>To this end, Markdown&#8217;s syntax is comprised entirely of punctuation</p>
58
58
 
59
59
  *** Output of to_latex ***
60
60
  filters -- including \href{http://docutils.sourceforge.net/mirror/setext.html}{Setext}, \href{http://www.aaronsw.com/2002/atx/}{atx}, \href{http://textism.com/tools/textile/}{Textile}, \href{http://docutils.sourceforge.net/rst.html}{reStructuredText}, \href{http://www.triptico.com/software/grutatxt.html}{Grutatext}, and \href{http://ettext.taint.org/doc/}{EtText} -- the single biggest source of inspiration for Markdown's syntax is the format of plain text email.
@@ -69,14 +69,14 @@ md_el(:document,[
69
69
  ],{},[])
70
70
  *** Output of to_html ***
71
71
  <pre><code>&#39;Twas a &quot;test&quot; to &#39;remember&#39; in the &#39;90s.</code></pre>
72
- <p>&lsquo;Twas a &ldquo;test&rdquo; to &lsquo;remember&rsquo; in the &rsquo;90s.</p>
72
+ <p>&#8216;Twas a &#8220;test&#8221; to &#8216;remember&#8217; in the &#8217;90s.</p>
73
73
  <pre><code>It was --- in a sense --- really... interesting.</code></pre>
74
- <p>It was &mdash; in a sense &mdash; really&hellip; interesting.</p>
74
+ <p>It was &#8212; in a sense &#8212; really&#8230; interesting.</p>
75
75
  <pre><code>I -- too -- met &lt;&lt; some curly quotes &gt;&gt; there or &lt;&lt;here&gt;&gt;No space.</code></pre>
76
- <p>I &ndash; too &ndash; met &laquo;&nbsp;some curly quotes&nbsp;&raquo; there or &laquo;here&raquo;No space.</p>
76
+ <p>I &#8211; too &#8211; met &#171;&#160;some curly quotes&#160;&#187; there or &#171;here&#187;No space.</p>
77
77
  <pre><code>She was 6\&quot;12\&#39;.</code></pre>
78
78
  <blockquote>
79
- <p>She was 6&quot;12&#39;.</p>
79
+ <p>She was 6&#34;12&#39;.</p>
80
80
  </blockquote>
81
81
 
82
82
  *** Output of to_latex ***
@@ -0,0 +1,68 @@
1
+ Write a comment here
2
+ *** Parameters: ***
3
+ {:on_error=>:raise}
4
+ *** Markdown input: ***
5
+
6
+ <svg:svg/>
7
+
8
+ <svg:svg
9
+ width="600px" height="400px">
10
+ <svg:g id="group">
11
+ <svg:circle id="circ1" r="1cm" cx="3cm" cy="3cm" style="fill:red;"></svg:circle>
12
+ <svg:circle id="circ2" r="1cm" cx="7cm" cy="3cm" style="fill:red;" />
13
+ </svg:g>
14
+ </svg:svg>
15
+
16
+ *** Output of inspect ***
17
+ md_el(:document,[
18
+ md_html("<svg:svg/>"),
19
+ 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>")
20
+ ],{},[])
21
+ *** Output of to_html ***
22
+ <svg:svg /><svg:svg height='400px' width='600px'>
23
+ <svg:g id='group'>
24
+ <svg:circle cy='3cm' id='circ1' r='1cm' cx='3cm' style='fill:red;' />
25
+ <svg:circle cy='3cm' id='circ2' r='1cm' cx='7cm' style='fill:red;' />
26
+ </svg:g>
27
+ </svg:svg>
28
+ *** Output of to_latex ***
29
+
30
+ *** Output of to_md ***
31
+
32
+ *** Output of to_s ***
33
+
34
+ *** EOF ***
35
+
36
+
37
+
38
+ OK!
39
+
40
+
41
+
42
+ *** Output of Markdown.pl ***
43
+ <p><svg:svg/></p>
44
+
45
+ <p><svg:svg
46
+ width="600px" height="400px">
47
+ <svg:g id="group">
48
+ <svg:circle id="circ1" r="1cm" cx="3cm" cy="3cm" style="fill:red;"></svg:circle>
49
+ <svg:circle id="circ2" r="1cm" cx="7cm" cy="3cm" style="fill:red;" />
50
+ </svg:g>
51
+ </svg:svg></p>
52
+
53
+ *** Output of Markdown.pl (parsed) ***
54
+ <p
55
+ ><svg:svg/
56
+ ></p
57
+ ><p
58
+ ><svg:svg height='400px' width='600px'>
59
+ <svg:g id='group'>
60
+ <svg:circle cy='3cm' id='circ1' r='1cm' cx='3cm' style='fill:red;'/
61
+ >
62
+ <svg:circle cy='3cm' id='circ2' r='1cm' cx='7cm' style='fill:red;'/
63
+ >
64
+ </svg:g
65
+ >
66
+ </svg:svg
67
+ ></p
68
+ >
@@ -0,0 +1,36 @@
1
+ Write a comment here
2
+ *** Parameters: ***
3
+ {}
4
+ *** Markdown input: ***
5
+ <!--
6
+ <
7
+ -->
8
+ *** Output of inspect ***
9
+ md_el(:document,[md_html("<!--\n<\n-->")],{},[])
10
+ *** Output of to_html ***
11
+ <!--
12
+ <
13
+ -->
14
+ *** Output of to_latex ***
15
+
16
+ *** Output of to_md ***
17
+
18
+ *** Output of to_s ***
19
+
20
+ *** EOF ***
21
+
22
+
23
+
24
+ OK!
25
+
26
+
27
+
28
+ *** Output of Markdown.pl ***
29
+ <!--
30
+ <
31
+ -->
32
+
33
+ *** Output of Markdown.pl (parsed) ***
34
+ <!--
35
+ <
36
+ -->