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.
- data/bin/maruku +66 -20
- data/bin/marutest +12 -2
- data/docs/changelog.html +188 -23
- data/docs/changelog.md +128 -5
- data/docs/entity_test.html +245 -240
- data/docs/entity_test.md +2 -0
- data/docs/exd.html +181 -23
- data/docs/index.html +130 -349
- data/docs/markdown_syntax.html +55 -51
- data/docs/maruku.html +130 -349
- data/docs/maruku.md +154 -339
- data/docs/math.md +143 -0
- data/docs/proposal.html +16 -12
- data/lib/maruku.rb +6 -3
- data/lib/maruku/attributes.rb +7 -2
- data/lib/maruku/defaults.rb +27 -27
- data/lib/maruku/errors_management.rb +10 -9
- data/lib/maruku/ext/diagrams/diagrams.rb +8 -0
- data/lib/maruku/ext/diagrams/grid.rb +78 -0
- data/lib/maruku/ext/diagrams/inspect.rb +11 -0
- data/lib/maruku/ext/diagrams/layout.rb +105 -0
- data/lib/maruku/ext/diagrams/parser.rb +219 -0
- data/lib/maruku/ext/diagrams/structures.rb +168 -0
- data/lib/maruku/ext/diagrams/to_html.rb +37 -0
- data/lib/maruku/ext/diagrams/to_latex.rb +308 -0
- data/lib/maruku/ext/diagrams/unittest.rb +123 -0
- data/lib/maruku/ext/math.rb +11 -0
- data/lib/maruku/ext/math/elements.rb +26 -0
- data/lib/maruku/ext/math/mathml_engines/blahtex.rb +108 -0
- data/lib/maruku/ext/math/mathml_engines/itex2mml.rb +29 -0
- data/lib/maruku/ext/math/mathml_engines/none.rb +20 -0
- data/lib/maruku/ext/math/mathml_engines/ritex.rb +24 -0
- data/lib/maruku/ext/math/parsing.rb +82 -0
- data/lib/maruku/ext/math/to_html.rb +178 -0
- data/lib/maruku/ext/math/to_latex.rb +21 -0
- data/lib/maruku/helpers.rb +11 -0
- data/lib/maruku/input/charsource.rb +1 -1
- data/lib/maruku/input/extensions.rb +68 -0
- data/lib/maruku/input/html_helper.rb +91 -60
- data/lib/maruku/input/parse_block.rb +10 -9
- data/lib/maruku/input/parse_doc.rb +21 -13
- data/lib/maruku/input/parse_span_better.rb +19 -8
- data/lib/maruku/input/type_detection.rb +5 -3
- data/lib/maruku/output/to_html.rb +236 -67
- data/lib/maruku/output/to_latex.rb +69 -26
- data/lib/maruku/output/to_latex_entities.rb +14 -2
- data/lib/maruku/output/to_s.rb +8 -0
- data/lib/maruku/structures.rb +1 -1
- data/lib/maruku/tests/benchmark.rb +2 -2
- data/lib/maruku/tests/new_parser.rb +13 -5
- data/lib/maruku/version.rb +1 -1
- data/lib/sort_prof.rb +22 -0
- data/tests/diagrams/diagrams.md +54 -0
- data/tests/math/syntax.md +46 -0
- data/tests/math_usage/document.md +13 -0
- data/tests/unittest/attributes/attributes.md +50 -6
- data/tests/unittest/easy.md +1 -1
- data/tests/unittest/email.md +3 -3
- data/tests/unittest/entities.md +12 -7
- data/tests/unittest/escaping.md +4 -4
- data/tests/unittest/extra_table1.md +3 -1
- data/tests/unittest/footnotes.md +5 -5
- data/tests/unittest/headers.md +3 -3
- data/tests/unittest/images.md +7 -7
- data/tests/unittest/inline_html.md +51 -5
- data/tests/unittest/links.md +7 -7
- data/tests/unittest/list2.md +1 -1
- data/tests/unittest/lists.md +1 -1
- data/tests/unittest/lists_after_paragraph.md +1 -1
- data/tests/unittest/lists_ol.md +1 -1
- data/tests/unittest/math/equations.md +82 -0
- data/tests/unittest/math/inline.md +80 -0
- data/tests/unittest/math/table.md +51 -0
- data/tests/unittest/math/table2.md +67 -0
- data/tests/unittest/misc_sw.md +24 -24
- data/tests/unittest/notyet/ticks.md +1 -1
- data/tests/unittest/references/long_example.md +2 -2
- data/tests/unittest/smartypants.md +4 -4
- data/tests/unittest/xml.md +68 -0
- data/tests/unittest/xml2.md +36 -0
- data/tests/unittest/xml3.md +52 -0
- data/tests/unittest/xml_instruction.md +5 -5
- metadata +33 -4
- data/docs/a.html +0 -6
- 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’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} α | The first | I like it.
|
9
|
+
{:r} ℵ | 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;'> α</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;'> ℵ</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} α | The first | I like it.
|
57
|
+
{:r} ℵ | 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} α | The first | I like it.
|
65
|
+
{:r} ℵ | The first | I like it.</p
|
66
|
+
><p>{:r: scope='row'}</p
|
67
|
+
>
|
data/tests/unittest/misc_sw.md
CHANGED
@@ -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", :
|
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>,
|
344
|
+
<li><em>Email</em>: <a href='http://gmail.com/'>GMail</a>, “search, don’t sort” 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
|
346
|
+
<li><em>Text Editor</em>: <a href='http://www.apple.com/getamac/'>TextMate</a>, 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 <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 "help", "copyright", "credits" or "licen
|
|
376
376
|
</li>
|
377
377
|
|
378
378
|
<li>
|
379
|
-
<p><em>Mark-up language</em>: HTML is so 2001, why don
|
379
|
+
<p><em>Mark-up language</em>: HTML is so 2001, why don’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 "help", "copyright", "credits" or "licen
|
|
416
416
|
\hypertarget{general}{}\subsubsection*{{General}}\label{general}
|
417
417
|
|
418
418
|
\begin{itemize}%
|
419
|
-
\item {
|
420
|
-
\item {
|
421
|
-
\item {
|
422
|
-
\item {
|
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 {
|
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 {
|
431
|
+
\item \emph{Source code control system}: ditch CVS for \href{http://subversion.tigris.org}{subversion}.
|
432
432
|
|
433
433
|
|
434
|
-
\item {
|
434
|
+
\item \emph{Project management}: \href{http://trac.edgewall.org/}{Trac} tracks everything.
|
435
435
|
|
436
436
|
|
437
|
-
\item {
|
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 {
|
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 {
|
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 {
|
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 {
|
462
|
-
\item {
|
463
|
-
\item {
|
464
|
-
\item {
|
465
|
-
\item {
|
466
|
-
\item {
|
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 {
|
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 {
|
475
|
-
\item {
|
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
|
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
|
55
|
+
<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>, <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 inspiration for Markdown’s syntax is the format of plain text email.</p>
|
56
56
|
|
57
|
-
<p>To this end, Markdown
|
57
|
+
<p>To this end, Markdown’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>'Twas a "test" to 'remember' in the '90s.</code></pre>
|
72
|
-
<p
|
72
|
+
<p>‘Twas a “test” to ‘remember’ in the ’90s.</p>
|
73
73
|
<pre><code>It was --- in a sense --- really... interesting.</code></pre>
|
74
|
-
<p>It was
|
74
|
+
<p>It was — in a sense — really… interesting.</p>
|
75
75
|
<pre><code>I -- too -- met << some curly quotes >> there or <<here>>No space.</code></pre>
|
76
|
-
<p>I
|
76
|
+
<p>I – too – met « some curly quotes » there or «here»No space.</p>
|
77
77
|
<pre><code>She was 6\"12\'.</code></pre>
|
78
78
|
<blockquote>
|
79
|
-
<p>She was 6
|
79
|
+
<p>She was 6"12'.</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
|
+
-->
|