bai-maruku 0.5.9
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +102 -0
- data/bin/marudown +29 -0
- data/bin/maruku +181 -0
- data/bin/marutest +345 -0
- data/bin/marutex +31 -0
- data/docs/changelog.md +334 -0
- data/docs/div_syntax.md +36 -0
- data/docs/entity_test.md +23 -0
- data/docs/markdown_syntax.md +899 -0
- data/docs/maruku.md +346 -0
- data/docs/math.md +194 -0
- data/docs/other_stuff.md +51 -0
- data/docs/proposal.md +309 -0
- data/lib/maruku.rb +141 -0
- data/lib/maruku/attributes.rb +227 -0
- data/lib/maruku/defaults.rb +71 -0
- data/lib/maruku/errors_management.rb +92 -0
- data/lib/maruku/ext/div.rb +133 -0
- data/lib/maruku/ext/math.rb +41 -0
- data/lib/maruku/ext/math/elements.rb +27 -0
- data/lib/maruku/ext/math/latex_fix.rb +12 -0
- data/lib/maruku/ext/math/mathml_engines/blahtex.rb +107 -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 +119 -0
- data/lib/maruku/ext/math/to_html.rb +187 -0
- data/lib/maruku/ext/math/to_latex.rb +26 -0
- data/lib/maruku/helpers.rb +260 -0
- data/lib/maruku/input/charsource.rb +326 -0
- data/lib/maruku/input/extensions.rb +69 -0
- data/lib/maruku/input/html_helper.rb +189 -0
- data/lib/maruku/input/linesource.rb +111 -0
- data/lib/maruku/input/parse_block.rb +614 -0
- data/lib/maruku/input/parse_doc.rb +227 -0
- data/lib/maruku/input/parse_span_better.rb +746 -0
- data/lib/maruku/input/rubypants.rb +225 -0
- data/lib/maruku/input/type_detection.rb +147 -0
- data/lib/maruku/input_textile2/t2_parser.rb +163 -0
- data/lib/maruku/maruku.rb +33 -0
- data/lib/maruku/output/s5/fancy.rb +756 -0
- data/lib/maruku/output/s5/to_s5.rb +138 -0
- data/lib/maruku/output/to_html.rb +991 -0
- data/lib/maruku/output/to_latex.rb +590 -0
- data/lib/maruku/output/to_latex_entities.rb +367 -0
- data/lib/maruku/output/to_latex_strings.rb +64 -0
- data/lib/maruku/output/to_markdown.rb +164 -0
- data/lib/maruku/output/to_s.rb +56 -0
- data/lib/maruku/string_utils.rb +191 -0
- data/lib/maruku/structures.rb +167 -0
- data/lib/maruku/structures_inspect.rb +87 -0
- data/lib/maruku/structures_iterators.rb +61 -0
- data/lib/maruku/tests/benchmark.rb +82 -0
- data/lib/maruku/tests/new_parser.rb +373 -0
- data/lib/maruku/tests/tests.rb +136 -0
- data/lib/maruku/textile2.rb +1 -0
- data/lib/maruku/toc.rb +199 -0
- data/lib/maruku/usage/example1.rb +33 -0
- data/lib/maruku/version.rb +40 -0
- data/maruku.gemspec +32 -0
- data/tests/bugs/code_in_links.md +101 -0
- data/tests/bugs/complex_escaping.md +38 -0
- data/tests/math/syntax.md +46 -0
- data/tests/math_usage/document.md +13 -0
- data/tests/others/abbreviations.md +11 -0
- data/tests/others/blank.md +4 -0
- data/tests/others/code.md +5 -0
- data/tests/others/code2.md +8 -0
- data/tests/others/code3.md +16 -0
- data/tests/others/email.md +4 -0
- data/tests/others/entities.md +19 -0
- data/tests/others/escaping.md +16 -0
- data/tests/others/extra_dl.md +101 -0
- data/tests/others/extra_header_id.md +13 -0
- data/tests/others/extra_table1.md +40 -0
- data/tests/others/footnotes.md +17 -0
- data/tests/others/headers.md +10 -0
- data/tests/others/hrule.md +10 -0
- data/tests/others/images.md +20 -0
- data/tests/others/inline_html.md +42 -0
- data/tests/others/links.md +38 -0
- data/tests/others/list1.md +4 -0
- data/tests/others/list2.md +5 -0
- data/tests/others/list3.md +8 -0
- data/tests/others/lists.md +32 -0
- data/tests/others/lists_after_paragraph.md +44 -0
- data/tests/others/lists_ol.md +39 -0
- data/tests/others/misc_sw.md +105 -0
- data/tests/others/one.md +1 -0
- data/tests/others/paragraphs.md +13 -0
- data/tests/others/sss06.md +352 -0
- data/tests/others/test.md +4 -0
- data/tests/s5/s5profiling.md +48 -0
- data/tests/unittest/abbreviations.md +64 -0
- data/tests/unittest/alt.md +29 -0
- data/tests/unittest/attributes/att2.md +32 -0
- data/tests/unittest/attributes/att3.md +40 -0
- data/tests/unittest/attributes/attributes.md +69 -0
- data/tests/unittest/attributes/circular.md +38 -0
- data/tests/unittest/attributes/default.md +34 -0
- data/tests/unittest/blank.md +36 -0
- data/tests/unittest/blanks_in_code.md +87 -0
- data/tests/unittest/bug_def.md +28 -0
- data/tests/unittest/bug_table.md +58 -0
- data/tests/unittest/code.md +46 -0
- data/tests/unittest/code2.md +40 -0
- data/tests/unittest/code3.md +83 -0
- data/tests/unittest/data_loss.md +37 -0
- data/tests/unittest/divs/div1.md +179 -0
- data/tests/unittest/divs/div2.md +33 -0
- data/tests/unittest/divs/div3_nest.md +57 -0
- data/tests/unittest/easy.md +27 -0
- data/tests/unittest/email.md +32 -0
- data/tests/unittest/encoding/iso-8859-1.md +35 -0
- data/tests/unittest/encoding/utf-8.md +30 -0
- data/tests/unittest/entities.md +106 -0
- data/tests/unittest/escaping.md +79 -0
- data/tests/unittest/extra_dl.md +64 -0
- data/tests/unittest/extra_header_id.md +75 -0
- data/tests/unittest/extra_table1.md +49 -0
- data/tests/unittest/footnotes.md +109 -0
- data/tests/unittest/headers.md +49 -0
- data/tests/unittest/hex_entities.md +49 -0
- data/tests/unittest/hrule.md +51 -0
- data/tests/unittest/html2.md +34 -0
- data/tests/unittest/html3.md +43 -0
- data/tests/unittest/html4.md +37 -0
- data/tests/unittest/html5.md +35 -0
- data/tests/unittest/ie.md +61 -0
- data/tests/unittest/images.md +102 -0
- data/tests/unittest/images2.md +43 -0
- data/tests/unittest/inline_html.md +187 -0
- data/tests/unittest/inline_html2.md +33 -0
- data/tests/unittest/links.md +164 -0
- data/tests/unittest/links2.md +34 -0
- data/tests/unittest/list1.md +58 -0
- data/tests/unittest/list12.md +40 -0
- data/tests/unittest/list2.md +68 -0
- data/tests/unittest/list3.md +76 -0
- data/tests/unittest/list4.md +101 -0
- data/tests/unittest/lists.md +204 -0
- data/tests/unittest/lists10.md +46 -0
- data/tests/unittest/lists11.md +28 -0
- data/tests/unittest/lists6.md +53 -0
- data/tests/unittest/lists9.md +76 -0
- data/tests/unittest/lists_after_paragraph.md +220 -0
- data/tests/unittest/lists_ol.md +274 -0
- data/tests/unittest/loss.md +28 -0
- data/tests/unittest/math/equations.md +86 -0
- data/tests/unittest/math/inline.md +58 -0
- data/tests/unittest/math/math2.md +88 -0
- data/tests/unittest/math/notmath.md +37 -0
- data/tests/unittest/math/table.md +52 -0
- data/tests/unittest/math/table2.md +54 -0
- data/tests/unittest/misc_sw.md +537 -0
- data/tests/unittest/notyet/escape.md +33 -0
- data/tests/unittest/notyet/header_after_par.md +70 -0
- data/tests/unittest/notyet/ticks.md +30 -0
- data/tests/unittest/notyet/triggering.md +169 -0
- data/tests/unittest/olist.md +57 -0
- data/tests/unittest/one.md +27 -0
- data/tests/unittest/paragraph.md +28 -0
- data/tests/unittest/paragraph_rules/dont_merge_ref.md +54 -0
- data/tests/unittest/paragraph_rules/tab_is_blank.md +36 -0
- data/tests/unittest/paragraphs.md +58 -0
- data/tests/unittest/pending/amps.md +27 -0
- data/tests/unittest/pending/empty_cells.md +49 -0
- data/tests/unittest/pending/link.md +84 -0
- data/tests/unittest/pending/ref.md +33 -0
- data/tests/unittest/recover/recover_links.md +27 -0
- data/tests/unittest/red_tests/abbrev.md +1388 -0
- data/tests/unittest/red_tests/lists7.md +68 -0
- data/tests/unittest/red_tests/lists7b.md +128 -0
- data/tests/unittest/red_tests/lists8.md +76 -0
- data/tests/unittest/references/long_example.md +83 -0
- data/tests/unittest/references/spaces_and_numbers.md +27 -0
- data/tests/unittest/smartypants.md +126 -0
- data/tests/unittest/syntax_hl.md +64 -0
- data/tests/unittest/table_attributes.md +46 -0
- data/tests/unittest/test.md +31 -0
- data/tests/unittest/underscore_in_words.md +27 -0
- data/tests/unittest/wrapping.md +79 -0
- data/tests/unittest/xml.md +45 -0
- data/tests/unittest/xml2.md +31 -0
- data/tests/unittest/xml3.md +38 -0
- data/tests/unittest/xml_instruction.md +64 -0
- data/tests/utf8-files/simple.md +1 -0
- data/unit_test_block.sh +5 -0
- data/unit_test_span.sh +3 -0
- metadata +251 -0
@@ -0,0 +1,68 @@
|
|
1
|
+
I'm not sure if this should work at all...
|
2
|
+
|
3
|
+
*** Parameters: ***
|
4
|
+
{} # params
|
5
|
+
*** Markdown input: ***
|
6
|
+
Ciao
|
7
|
+
|
8
|
+
* Tab
|
9
|
+
* Tab
|
10
|
+
* Tab
|
11
|
+
|
12
|
+
*** Output of inspect ***
|
13
|
+
nil
|
14
|
+
*** Output of to_html ***
|
15
|
+
<p>Ciao</p>
|
16
|
+
|
17
|
+
<ul>
|
18
|
+
<li>Tab * Tab * Tab</li>
|
19
|
+
</ul>
|
20
|
+
*** Output of to_latex ***
|
21
|
+
Ciao
|
22
|
+
|
23
|
+
\begin{itemize}%
|
24
|
+
\item Tab * Tab * Tab
|
25
|
+
|
26
|
+
\end{itemize}
|
27
|
+
*** Output of to_md ***
|
28
|
+
Ciao
|
29
|
+
|
30
|
+
-ab * Tab * Tab
|
31
|
+
*** Output of to_s ***
|
32
|
+
CiaoTab * Tab * Tab
|
33
|
+
*** EOF ***
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
Failed tests: [:inspect]
|
39
|
+
|
40
|
+
*** Output of inspect ***
|
41
|
+
-----| WARNING | -----
|
42
|
+
md_el(:document,[
|
43
|
+
md_par(["Ciao"]),
|
44
|
+
md_el(:ul,[md_el(:li_span,["Tab * Tab * Tab"],{:want_my_paragraph=>false},[])],{},[])
|
45
|
+
],{},[])
|
46
|
+
*** Output of to_html ***
|
47
|
+
<p>Ciao</p>
|
48
|
+
|
49
|
+
<ul>
|
50
|
+
<li>Tab * Tab * Tab</li>
|
51
|
+
</ul>
|
52
|
+
*** Output of to_latex ***
|
53
|
+
Ciao
|
54
|
+
|
55
|
+
\begin{itemize}%
|
56
|
+
\item Tab * Tab * Tab
|
57
|
+
|
58
|
+
\end{itemize}
|
59
|
+
*** Output of to_md ***
|
60
|
+
Ciao
|
61
|
+
|
62
|
+
-ab * Tab * Tab
|
63
|
+
*** Output of to_s ***
|
64
|
+
CiaoTab * Tab * Tab
|
65
|
+
*** Output of Markdown.pl ***
|
66
|
+
(not used anymore)
|
67
|
+
*** Output of Markdown.pl (parsed) ***
|
68
|
+
(not used anymore)
|
@@ -0,0 +1,128 @@
|
|
1
|
+
Test case given by Scott.
|
2
|
+
|
3
|
+
http://rubyforge.org/tracker/index.php?func=detail&aid=8862&group_id=2795&atid=10735
|
4
|
+
|
5
|
+
a should not be indented.
|
6
|
+
|
7
|
+
*** Parameters: ***
|
8
|
+
{} # params
|
9
|
+
*** Markdown input: ***
|
10
|
+
* a
|
11
|
+
* a1
|
12
|
+
* a2
|
13
|
+
* b
|
14
|
+
|
15
|
+
|
16
|
+
*** Output of inspect ***
|
17
|
+
md_el(:document,[
|
18
|
+
md_el(:ul,[
|
19
|
+
md_el(:li,[
|
20
|
+
"a",
|
21
|
+
md_el(:ul,[
|
22
|
+
md_el(:li_span,["a1"],{:want_my_paragraph=>false},[]),
|
23
|
+
md_el(:li_span,["a2"],{:want_my_paragraph=>false},[])
|
24
|
+
],{},[])
|
25
|
+
],{:want_my_paragraph=>true},[]),
|
26
|
+
md_el(:li,[md_par(["b"])],{:want_my_paragraph=>false},[])
|
27
|
+
],{},[])
|
28
|
+
],{},[])
|
29
|
+
*** Output of to_html ***
|
30
|
+
<ul>
|
31
|
+
<li>
|
32
|
+
a
|
33
|
+
|
34
|
+
<ul>
|
35
|
+
<li>a1</li>
|
36
|
+
|
37
|
+
<li>a2</li>
|
38
|
+
</ul>
|
39
|
+
</li>
|
40
|
+
|
41
|
+
<li>
|
42
|
+
<p>b</p>
|
43
|
+
</li>
|
44
|
+
</ul>
|
45
|
+
*** Output of to_latex ***
|
46
|
+
\begin{itemize}%
|
47
|
+
\item a
|
48
|
+
|
49
|
+
\begin{itemize}%
|
50
|
+
\item a1
|
51
|
+
\item a2
|
52
|
+
|
53
|
+
\end{itemize}
|
54
|
+
|
55
|
+
\item b
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
\end{itemize}
|
60
|
+
*** Output of to_md ***
|
61
|
+
-* a1
|
62
|
+
* a2
|
63
|
+
-
|
64
|
+
*** Output of to_s ***
|
65
|
+
aa1a2b
|
66
|
+
*** EOF ***
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
Failed tests: [:inspect, :to_html]
|
72
|
+
|
73
|
+
*** Output of inspect ***
|
74
|
+
-----| WARNING | -----
|
75
|
+
md_el(:document,[
|
76
|
+
md_el(:ul,[
|
77
|
+
md_el(:li,[
|
78
|
+
md_par(["a"]),
|
79
|
+
md_el(:ul,[
|
80
|
+
md_el(:li_span,["a1"],{:want_my_paragraph=>false},[]),
|
81
|
+
md_el(:li_span,["a2"],{:want_my_paragraph=>false},[])
|
82
|
+
],{},[])
|
83
|
+
],{:want_my_paragraph=>true},[]),
|
84
|
+
md_el(:li,[md_par(["b"])],{:want_my_paragraph=>false},[])
|
85
|
+
],{},[])
|
86
|
+
],{},[])
|
87
|
+
*** Output of to_html ***
|
88
|
+
-----| WARNING | -----
|
89
|
+
<ul>
|
90
|
+
<li>
|
91
|
+
<p>a</p>
|
92
|
+
|
93
|
+
<ul>
|
94
|
+
<li>a1</li>
|
95
|
+
|
96
|
+
<li>a2</li>
|
97
|
+
</ul>
|
98
|
+
</li>
|
99
|
+
|
100
|
+
<li>
|
101
|
+
<p>b</p>
|
102
|
+
</li>
|
103
|
+
</ul>
|
104
|
+
*** Output of to_latex ***
|
105
|
+
\begin{itemize}%
|
106
|
+
\item a
|
107
|
+
|
108
|
+
\begin{itemize}%
|
109
|
+
\item a1
|
110
|
+
\item a2
|
111
|
+
|
112
|
+
\end{itemize}
|
113
|
+
|
114
|
+
\item b
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
\end{itemize}
|
119
|
+
*** Output of to_md ***
|
120
|
+
-* a1
|
121
|
+
* a2
|
122
|
+
-
|
123
|
+
*** Output of to_s ***
|
124
|
+
aa1a2b
|
125
|
+
*** Output of Markdown.pl ***
|
126
|
+
(not used anymore)
|
127
|
+
*** Output of Markdown.pl (parsed) ***
|
128
|
+
(not used anymore)
|
@@ -0,0 +1,76 @@
|
|
1
|
+
Write a comment here
|
2
|
+
*** Parameters: ***
|
3
|
+
{} # params
|
4
|
+
*** Markdown input: ***
|
5
|
+
Here is a paragraph.
|
6
|
+
|
7
|
+
|
8
|
+
* Item 1
|
9
|
+
* Item 2
|
10
|
+
* Item 3
|
11
|
+
|
12
|
+
*** Output of inspect ***
|
13
|
+
md_el(:document,[
|
14
|
+
md_par(["Here is a paragraph."]),
|
15
|
+
md_el(:ul,[
|
16
|
+
md_el(:li_span,["Item 1"],{:want_my_paragraph=>false},[]),
|
17
|
+
md_el(:li_span,["Item 2"],{:want_my_paragraph=>false},[]),
|
18
|
+
md_el(:li_span,["Item 3"],{:want_my_paragraph=>false},[])
|
19
|
+
],{},[])
|
20
|
+
],{},[])
|
21
|
+
*** Output of to_html ***
|
22
|
+
<p>Here is a paragraph.</p>
|
23
|
+
|
24
|
+
<ul>
|
25
|
+
<li>Item 1</li>
|
26
|
+
|
27
|
+
<li>Item 2</li>
|
28
|
+
|
29
|
+
<li>Item 3</li>
|
30
|
+
</ul>
|
31
|
+
*** Output of to_latex ***
|
32
|
+
Here is a paragraph.
|
33
|
+
|
34
|
+
* Item 1 * Item 2 * Item 3
|
35
|
+
*** Output of to_md ***
|
36
|
+
Here is a paragraph.
|
37
|
+
|
38
|
+
-tem 1
|
39
|
+
-tem 2
|
40
|
+
-tem 3
|
41
|
+
*** Output of to_s ***
|
42
|
+
Here is a paragraph.Item 1Item 2Item 3
|
43
|
+
*** EOF ***
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
Failed tests: [:inspect, :to_html, :to_md, :to_s]
|
49
|
+
|
50
|
+
*** Output of inspect ***
|
51
|
+
-----| WARNING | -----
|
52
|
+
md_el(:document,[
|
53
|
+
md_par(["Here is a paragraph."]),
|
54
|
+
md_par(["* Item 1 * Item 2 * Item 3"])
|
55
|
+
],{},[])
|
56
|
+
*** Output of to_html ***
|
57
|
+
-----| WARNING | -----
|
58
|
+
<p>Here is a paragraph.</p>
|
59
|
+
|
60
|
+
<p>* Item 1 * Item 2 * Item 3</p>
|
61
|
+
*** Output of to_latex ***
|
62
|
+
Here is a paragraph.
|
63
|
+
|
64
|
+
* Item 1 * Item 2 * Item 3
|
65
|
+
*** Output of to_md ***
|
66
|
+
-----| WARNING | -----
|
67
|
+
Here is a paragraph.
|
68
|
+
|
69
|
+
* Item 1 * Item 2 * Item 3
|
70
|
+
*** Output of to_s ***
|
71
|
+
-----| WARNING | -----
|
72
|
+
Here is a paragraph.* Item 1 * Item 2 * Item 3
|
73
|
+
*** Output of Markdown.pl ***
|
74
|
+
(not used anymore)
|
75
|
+
*** Output of Markdown.pl (parsed) ***
|
76
|
+
(not used anymore)
|
@@ -0,0 +1,83 @@
|
|
1
|
+
Taken from the syntax document
|
2
|
+
*** Parameters: ***
|
3
|
+
{}
|
4
|
+
*** Markdown input: ***
|
5
|
+
|
6
|
+
filters -- including [Setext] [1], [atx] [2], [Textile] [3], [reStructuredText] [4],
|
7
|
+
[Grutatext] [5], and [EtText] [6] -- the single biggest source of
|
8
|
+
inspiration for Markdown's syntax is the format of plain text email.
|
9
|
+
|
10
|
+
[1]: http://docutils.sourceforge.net/mirror/setext.html
|
11
|
+
[2]: http://www.aaronsw.com/2002/atx/
|
12
|
+
[3]: http://textism.com/tools/textile/
|
13
|
+
[4]: http://docutils.sourceforge.net/rst.html
|
14
|
+
[5]: http://www.triptico.com/software/grutatxt.html
|
15
|
+
[6]: http://ettext.taint.org/doc/
|
16
|
+
|
17
|
+
To this end, Markdown's syntax is comprised entirely of punctuation
|
18
|
+
*** Output of inspect ***
|
19
|
+
md_el(:document,[
|
20
|
+
md_par([
|
21
|
+
"filters ",
|
22
|
+
md_entity("ndash"),
|
23
|
+
" including ",
|
24
|
+
md_link(["Setext"],"1"),
|
25
|
+
", ",
|
26
|
+
md_link(["atx"],"2"),
|
27
|
+
", ",
|
28
|
+
md_link(["Textile"],"3"),
|
29
|
+
", ",
|
30
|
+
md_link(["reStructuredText"],"4"),
|
31
|
+
", ",
|
32
|
+
md_link(["Grutatext"],"5"),
|
33
|
+
", and ",
|
34
|
+
md_link(["EtText"],"6"),
|
35
|
+
" ",
|
36
|
+
md_entity("ndash"),
|
37
|
+
" the single biggest source of inspiration for Markdown",
|
38
|
+
md_entity("rsquo"),
|
39
|
+
"s syntax is the format of plain text email."
|
40
|
+
]),
|
41
|
+
md_ref_def("1", "http://docutils.sourceforge.net/mirror/setext.html", {:title=>nil}),
|
42
|
+
md_ref_def("2", "http://www.aaronsw.com/2002/atx/", {:title=>nil}),
|
43
|
+
md_ref_def("3", "http://textism.com/tools/textile/", {:title=>nil}),
|
44
|
+
md_ref_def("4", "http://docutils.sourceforge.net/rst.html", {:title=>nil}),
|
45
|
+
md_ref_def("5", "http://www.triptico.com/software/grutatxt.html", {:title=>nil}),
|
46
|
+
md_ref_def("6", "http://ettext.taint.org/doc/", {:title=>nil}),
|
47
|
+
md_par([
|
48
|
+
"To this end, Markdown",
|
49
|
+
md_entity("rsquo"),
|
50
|
+
"s syntax is comprised entirely of punctuation"
|
51
|
+
])
|
52
|
+
],{},[])
|
53
|
+
*** Output of to_html ***
|
54
|
+
<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>
|
55
|
+
|
56
|
+
<p>To this end, Markdown’s syntax is comprised entirely of punctuation</p>
|
57
|
+
*** Output of to_latex ***
|
58
|
+
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.
|
59
|
+
|
60
|
+
To this end, Markdown'{}s syntax is comprised entirely of punctuation
|
61
|
+
*** Output of to_md ***
|
62
|
+
filters including Setext, atx, Textile,
|
63
|
+
reStructuredText, Grutatext, and EtText
|
64
|
+
the single biggest source of
|
65
|
+
inspiration for Markdown s syntax is
|
66
|
+
the format of plain text email.
|
67
|
+
|
68
|
+
To this end, Markdown s syntax is
|
69
|
+
comprised entirely of punctuation
|
70
|
+
*** Output of to_s ***
|
71
|
+
filters including Setext, atx, Textile, reStructuredText, Grutatext, and EtText the single biggest source of inspiration for Markdowns syntax is the format of plain text email.To this end, Markdowns syntax is comprised entirely of punctuation
|
72
|
+
*** EOF ***
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
OK!
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
*** Output of Markdown.pl ***
|
81
|
+
(not used anymore)
|
82
|
+
*** Output of Markdown.pl (parsed) ***
|
83
|
+
(not used anymore)
|
@@ -0,0 +1,27 @@
|
|
1
|
+
Spaces can be put before. ID can be a number
|
2
|
+
*** Parameters: ***
|
3
|
+
{}
|
4
|
+
*** Markdown input: ***
|
5
|
+
[6]: http://ettext.taint.org/doc/
|
6
|
+
*** Output of inspect ***
|
7
|
+
md_el(:document,[md_ref_def("6", "http://ettext.taint.org/doc/", {:title=>nil})],{},[])
|
8
|
+
*** Output of to_html ***
|
9
|
+
|
10
|
+
*** Output of to_latex ***
|
11
|
+
|
12
|
+
*** Output of to_md ***
|
13
|
+
|
14
|
+
*** Output of to_s ***
|
15
|
+
|
16
|
+
*** EOF ***
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
OK!
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
*** Output of Markdown.pl ***
|
25
|
+
(not used anymore)
|
26
|
+
*** Output of Markdown.pl (parsed) ***
|
27
|
+
(not used anymore)
|
@@ -0,0 +1,126 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
|
4
|
+
*** Parameters: ***
|
5
|
+
{}
|
6
|
+
*** Markdown input: ***
|
7
|
+
'Twas a "test" to 'remember' in the '90s.
|
8
|
+
'Twas a "test" to 'remember' in the '90s.
|
9
|
+
|
10
|
+
It was --- in a sense --- really... interesting.
|
11
|
+
It was --- in a sense --- really... interesting.
|
12
|
+
|
13
|
+
I -- too -- met << some curly quotes >> there or <<here>>No space.
|
14
|
+
I -- too -- met << some curly quotes >> there or <<here>>No space.
|
15
|
+
|
16
|
+
|
17
|
+
She was 6\"12\'.
|
18
|
+
> She was 6\"12\'.
|
19
|
+
|
20
|
+
*** Output of inspect ***
|
21
|
+
md_el(:document,[
|
22
|
+
md_el(:code,[],{:raw_code=>"'Twas a \"test\" to 'remember' in the '90s."},[]),
|
23
|
+
md_par([
|
24
|
+
md_entity("lsquo"),
|
25
|
+
"Twas a ",
|
26
|
+
md_entity("ldquo"),
|
27
|
+
"test",
|
28
|
+
md_entity("rdquo"),
|
29
|
+
" to ",
|
30
|
+
md_entity("lsquo"),
|
31
|
+
"remember",
|
32
|
+
md_entity("rsquo"),
|
33
|
+
" in the ",
|
34
|
+
md_entity("rsquo"),
|
35
|
+
"90s."
|
36
|
+
]),
|
37
|
+
md_el(:code,[],{:raw_code=>"It was --- in a sense --- really... interesting."},[]),
|
38
|
+
md_par([
|
39
|
+
"It was ",
|
40
|
+
md_entity("mdash"),
|
41
|
+
" in a sense ",
|
42
|
+
md_entity("mdash"),
|
43
|
+
" really",
|
44
|
+
md_entity("hellip"),
|
45
|
+
" interesting."
|
46
|
+
]),
|
47
|
+
md_el(:code,[],{:raw_code=>"I -- too -- met << some curly quotes >> there or <<here>>No space."},[]),
|
48
|
+
md_par([
|
49
|
+
"I ",
|
50
|
+
md_entity("ndash"),
|
51
|
+
" too ",
|
52
|
+
md_entity("ndash"),
|
53
|
+
" met ",
|
54
|
+
md_entity("laquo"),
|
55
|
+
md_entity("nbsp"),
|
56
|
+
"some curly quotes",
|
57
|
+
md_entity("nbsp"),
|
58
|
+
md_entity("raquo"),
|
59
|
+
" there or ",
|
60
|
+
md_entity("laquo"),
|
61
|
+
"here",
|
62
|
+
md_entity("raquo"),
|
63
|
+
"No space."
|
64
|
+
]),
|
65
|
+
md_el(:code,[],{:raw_code=>"She was 6\\\"12\\'."},[]),
|
66
|
+
md_el(:quote,[
|
67
|
+
md_par(["She was 6", md_entity("quot"), "12", md_entity("apos"), "."])
|
68
|
+
],{},[])
|
69
|
+
],{},[])
|
70
|
+
*** Output of to_html ***
|
71
|
+
<pre><code>'Twas a "test" to 'remember' in the '90s.</code></pre>
|
72
|
+
|
73
|
+
<p>‘Twas a “test” to ‘remember’ in the ’90s.</p>
|
74
|
+
|
75
|
+
<pre><code>It was --- in a sense --- really... interesting.</code></pre>
|
76
|
+
|
77
|
+
<p>It was — in a sense — really… interesting.</p>
|
78
|
+
|
79
|
+
<pre><code>I -- too -- met << some curly quotes >> there or <<here>>No space.</code></pre>
|
80
|
+
|
81
|
+
<p>I – too – met « some curly quotes » there or «here»No space.</p>
|
82
|
+
|
83
|
+
<pre><code>She was 6\"12\'.</code></pre>
|
84
|
+
|
85
|
+
<blockquote>
|
86
|
+
<p>She was 6"12'.</p>
|
87
|
+
</blockquote>
|
88
|
+
*** Output of to_latex ***
|
89
|
+
\begin{verbatim}'Twas a "test" to 'remember' in the '90s.\end{verbatim}
|
90
|
+
`{}Twas a ``{}test''{} to `{}remember'{} in the '{}90s.
|
91
|
+
|
92
|
+
\begin{verbatim}It was --- in a sense --- really... interesting.\end{verbatim}
|
93
|
+
It was ---{} in a sense ---{} really\ldots{} interesting.
|
94
|
+
|
95
|
+
\begin{verbatim}I -- too -- met << some curly quotes >> there or <<here>>No space.\end{verbatim}
|
96
|
+
I --{} too --{} met \guillemotleft{}~{}some curly quotes~{}\guillemotright{} there or \guillemotleft{}here\guillemotright{}No space.
|
97
|
+
|
98
|
+
\begin{verbatim}She was 6\"12\'.\end{verbatim}
|
99
|
+
\begin{quote}%
|
100
|
+
She was 6"{}12'{}.
|
101
|
+
|
102
|
+
|
103
|
+
\end{quote}
|
104
|
+
*** Output of to_md ***
|
105
|
+
Twas a test to remember in the 90s.
|
106
|
+
|
107
|
+
It was in a sense really interesting.
|
108
|
+
|
109
|
+
I too met some curly quotes there or
|
110
|
+
here No space.
|
111
|
+
|
112
|
+
She was 6 12 .
|
113
|
+
*** Output of to_s ***
|
114
|
+
Twas a test to remember in the 90s.It was in a sense really interesting.I too met some curly quotes there or hereNo space.She was 612.
|
115
|
+
*** EOF ***
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
OK!
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
*** Output of Markdown.pl ***
|
124
|
+
(not used anymore)
|
125
|
+
*** Output of Markdown.pl (parsed) ***
|
126
|
+
(not used anymore)
|