maruku 0.2.13 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/maruku +23 -15
- data/bin/maruku0.3 +37 -0
- data/bin/marutest +277 -0
- data/docs/changelog-0.3.html +99 -0
- data/docs/changelog-0.3.md +84 -0
- data/docs/faq.html +46 -0
- data/docs/faq.md +32 -0
- data/docs/index.html +629 -64
- data/docs/markdown_extra2.html +67 -14
- data/docs/markdown_syntax.html +631 -94
- data/docs/markdown_syntax_2.html +152 -0
- data/docs/maruku.html +629 -64
- data/docs/maruku.md +108 -105
- data/docs/proposal.html +362 -55
- data/docs/proposal.md +133 -169
- data/docs/todo.html +30 -0
- data/lib/maruku.rb +13 -3
- data/lib/maruku/errors_management.rb +75 -0
- data/lib/maruku/helpers.rb +164 -0
- data/lib/maruku/html_helper.rb +33 -13
- data/lib/maruku/parse_block.rb +89 -92
- data/lib/maruku/parse_doc.rb +43 -18
- data/lib/maruku/parse_span.rb +17 -46
- data/lib/maruku/parse_span_better.rb +681 -0
- data/lib/maruku/string_utils.rb +17 -10
- data/lib/maruku/structures.rb +62 -35
- data/lib/maruku/structures_iterators.rb +39 -0
- data/lib/maruku/tests/benchmark.rb +12 -4
- data/lib/maruku/tests/new_parser.rb +318 -0
- data/lib/maruku/to_html.rb +113 -44
- data/lib/maruku/to_latex.rb +32 -14
- data/lib/maruku/to_markdown.rb +110 -0
- data/lib/maruku/toc.rb +35 -1
- data/lib/maruku/version.rb +10 -1
- data/lib/test.rb +29 -0
- data/tests/others/escaping.md +6 -4
- data/tests/others/links.md +1 -1
- data/tests/others/lists_after_paragraph.md +44 -0
- data/tests/unittest/abbreviations.md +71 -0
- data/tests/unittest/blank.md +43 -0
- data/tests/unittest/blanks_in_code.md +131 -0
- data/tests/unittest/code.md +64 -0
- data/tests/unittest/code2.md +59 -0
- data/tests/unittest/code3.md +121 -0
- data/tests/unittest/easy.md +36 -0
- data/tests/unittest/email.md +39 -0
- data/tests/unittest/encoding/iso-8859-1.md +9 -0
- data/tests/unittest/encoding/utf-8.md +38 -0
- data/tests/unittest/entities.md +174 -0
- data/tests/unittest/escaping.md +97 -0
- data/tests/unittest/extra_dl.md +81 -0
- data/tests/unittest/extra_header_id.md +96 -0
- data/tests/unittest/extra_table1.md +78 -0
- data/tests/unittest/footnotes.md +120 -0
- data/tests/unittest/headers.md +64 -0
- data/tests/unittest/hrule.md +77 -0
- data/tests/unittest/images.md +114 -0
- data/tests/unittest/inline_html.md +185 -0
- data/tests/unittest/links.md +162 -0
- data/tests/unittest/list1.md +80 -0
- data/tests/unittest/list2.md +75 -0
- data/tests/unittest/list3.md +111 -0
- data/tests/unittest/list4.md +43 -0
- data/tests/unittest/lists.md +262 -0
- data/tests/unittest/lists_after_paragraph.md +280 -0
- data/tests/unittest/lists_ol.md +323 -0
- data/tests/unittest/misc_sw.md +751 -0
- data/tests/unittest/notyet/escape.md +46 -0
- data/tests/unittest/notyet/header_after_par.md +85 -0
- data/tests/unittest/notyet/ticks.md +67 -0
- data/tests/unittest/notyet/triggering.md +210 -0
- data/tests/unittest/one.md +33 -0
- data/tests/unittest/paragraph.md +34 -0
- data/tests/unittest/paragraph_rules/dont_merge_ref.md +60 -0
- data/tests/unittest/paragraph_rules/tab_is_blank.md +43 -0
- data/tests/unittest/paragraphs.md +84 -0
- data/tests/unittest/recover/recover_links.md +32 -0
- data/tests/unittest/references/long_example.md +87 -0
- data/tests/unittest/references/spaces_and_numbers.md +27 -0
- data/tests/unittest/syntax_hl.md +99 -0
- data/tests/unittest/test.md +36 -0
- data/tests/unittest/wrapping.md +88 -0
- data/tests/utf8-files/simple.md +1 -0
- metadata +139 -86
- data/lib/maruku/maruku.rb +0 -50
- data/tests/a.md +0 -10
@@ -0,0 +1,64 @@
|
|
1
|
+
Write a comment abouth the test here.
|
2
|
+
*** Parameters: ***
|
3
|
+
{:title=>"A title with emphasis"}
|
4
|
+
*** Markdown input: ***
|
5
|
+
A title with *emphasis*
|
6
|
+
=======================
|
7
|
+
|
8
|
+
A title with *emphasis*
|
9
|
+
-----------------------
|
10
|
+
|
11
|
+
|
12
|
+
#### A title with *emphasis* ####
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
*** Output of inspect ***
|
17
|
+
md_el(:document,[
|
18
|
+
md_el(:header,["A title with ", md_em(["emphasis"])] , {:id=>"a_title_with_emphasis", :level=>1}),
|
19
|
+
md_el(:header,["A title with ", md_em(["emphasis"])] , {:id=>"a_title_with_emphasis", :level=>2}),
|
20
|
+
md_el(:header,["A title with ", md_em(["emphasis"])] , {:id=>"a_title_with_emphasis", :level=>4})
|
21
|
+
] , {:title=>"A title with emphasis"})
|
22
|
+
*** Output of to_html ***
|
23
|
+
|
24
|
+
<h1 id='a_title_with_emphasis'>A title with <em>emphasis</em></h1>
|
25
|
+
|
26
|
+
<h2 id='a_title_with_emphasis'>A title with <em>emphasis</em></h2>
|
27
|
+
|
28
|
+
<h4 id='a_title_with_emphasis'>A title with <em>emphasis</em></h4>
|
29
|
+
|
30
|
+
*** Output of to_latex ***
|
31
|
+
\hypertarget{a_title_with_emphasis}{}\section*{{A title with {\em emphasis}}}\label{a_title_with_emphasis}
|
32
|
+
|
33
|
+
\hypertarget{a_title_with_emphasis}{}\subsection*{{A title with {\em emphasis}}}\label{a_title_with_emphasis}
|
34
|
+
|
35
|
+
\hypertarget{a_title_with_emphasis}{}\paragraph*{{A title with {\em emphasis}}}\label{a_title_with_emphasis}
|
36
|
+
|
37
|
+
|
38
|
+
*** Output of to_s ***
|
39
|
+
A title with emphasisA title with emphasisA title with emphasis
|
40
|
+
*** Output of to_s ***
|
41
|
+
A title with emphasisA title with emphasisA title with emphasis
|
42
|
+
*** EOF ***
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
OK!
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
*** Output of Markdown.pl ***
|
51
|
+
<h1>A title with <em>emphasis</em></h1>
|
52
|
+
|
53
|
+
<h2>A title with <em>emphasis</em></h2>
|
54
|
+
|
55
|
+
<h4>A title with <em>emphasis</em></h4>
|
56
|
+
|
57
|
+
*** Output of Markdown.pl (parsed) ***
|
58
|
+
<h1>A title with <em>emphasis</em
|
59
|
+
></h1
|
60
|
+
><h2>A title with <em>emphasis</em
|
61
|
+
></h2
|
62
|
+
><h4>A title with <em>emphasis</em
|
63
|
+
></h4
|
64
|
+
>
|
@@ -0,0 +1,77 @@
|
|
1
|
+
Write a comment abouth the test here.
|
2
|
+
*** Parameters: ***
|
3
|
+
{}
|
4
|
+
*** Markdown input: ***
|
5
|
+
* * *
|
6
|
+
|
7
|
+
***
|
8
|
+
|
9
|
+
*****
|
10
|
+
|
11
|
+
- - -
|
12
|
+
|
13
|
+
---------------------------------------
|
14
|
+
|
15
|
+
|
16
|
+
*** Output of inspect ***
|
17
|
+
md_el(:document,[
|
18
|
+
md_el(:hrule,[] ),
|
19
|
+
md_el(:hrule,[] ),
|
20
|
+
md_el(:hrule,[] ),
|
21
|
+
md_el(:hrule,[] ),
|
22
|
+
md_el(:hrule,[] )
|
23
|
+
] )
|
24
|
+
*** Output of to_html ***
|
25
|
+
|
26
|
+
<hr />
|
27
|
+
|
28
|
+
<hr />
|
29
|
+
|
30
|
+
<hr />
|
31
|
+
|
32
|
+
<hr />
|
33
|
+
|
34
|
+
<hr />
|
35
|
+
|
36
|
+
*** Output of to_latex ***
|
37
|
+
|
38
|
+
\vspace{.5em} \hrule \vspace{.5em}
|
39
|
+
|
40
|
+
\vspace{.5em} \hrule \vspace{.5em}
|
41
|
+
|
42
|
+
\vspace{.5em} \hrule \vspace{.5em}
|
43
|
+
|
44
|
+
\vspace{.5em} \hrule \vspace{.5em}
|
45
|
+
|
46
|
+
\vspace{.5em} \hrule \vspace{.5em}
|
47
|
+
|
48
|
+
*** Output of to_s ***
|
49
|
+
|
50
|
+
*** Output of to_s ***
|
51
|
+
|
52
|
+
*** EOF ***
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
OK!
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
*** Output of Markdown.pl ***
|
61
|
+
<hr />
|
62
|
+
|
63
|
+
<hr />
|
64
|
+
|
65
|
+
<hr />
|
66
|
+
|
67
|
+
<hr />
|
68
|
+
|
69
|
+
<hr />
|
70
|
+
|
71
|
+
*** Output of Markdown.pl (parsed) ***
|
72
|
+
<hr/
|
73
|
+
><hr/
|
74
|
+
><hr/
|
75
|
+
><hr/
|
76
|
+
><hr/
|
77
|
+
>
|
@@ -0,0 +1,114 @@
|
|
1
|
+
Write a comment abouth the test here.
|
2
|
+
*** Parameters: ***
|
3
|
+
{}
|
4
|
+
*** Markdown input: ***
|
5
|
+
|
6
|
+
This page does not uilizes ![Cascading Style Sheets](http://jigsaw.w3.org/css-validator/images/vcss)
|
7
|
+
|
8
|
+
|
9
|
+
Please mouseover to see the title: ![Cascading Style Sheets](http://jigsaw.w3.org/css-validator/images/vcss "Title ok!")
|
10
|
+
|
11
|
+
Please mouseover to see the title: ![Cascading Style Sheets](http://jigsaw.w3.org/css-validator/images/vcss 'Title ok!')
|
12
|
+
|
13
|
+
|
14
|
+
I'll say it one more time: this page does not use ![Cascading Style Sheets] [css]
|
15
|
+
|
16
|
+
This is double size: ![Cascading Style Sheets] [css2]
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
[css]: http://jigsaw.w3.org/css-validator/images/vcss "Optional title attribute"
|
21
|
+
|
22
|
+
[css2]: http://jigsaw.w3.org/css-validator/images/vcss "Optional title attribute" class=external
|
23
|
+
style="border:0;width:188px;height:131px"
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
*** Output of inspect ***
|
28
|
+
md_el(:document,[
|
29
|
+
md_par([
|
30
|
+
"This page does not uilizes ",
|
31
|
+
md_im_image(["Cascading Style Sheets"], "http://jigsaw.w3.org/css-validator/images/vcss" )
|
32
|
+
]),
|
33
|
+
md_par([
|
34
|
+
"Please mouseover to see the title: ",
|
35
|
+
md_im_image(["Cascading Style Sheets"], "http://jigsaw.w3.org/css-validator/images/vcss" , "Title ok!")
|
36
|
+
]),
|
37
|
+
md_par([
|
38
|
+
"Please mouseover to see the title: ",
|
39
|
+
md_im_image(["Cascading Style Sheets"], "http://jigsaw.w3.org/css-validator/images/vcss" , "Title ok!")
|
40
|
+
]),
|
41
|
+
md_par([
|
42
|
+
"I'll say it one more time: this page does not use ",
|
43
|
+
md_image(["Cascading Style Sheets"],"css")
|
44
|
+
]),
|
45
|
+
md_par([
|
46
|
+
"This is double size: ",
|
47
|
+
md_image(["Cascading Style Sheets"],"css2")
|
48
|
+
]),
|
49
|
+
md_ref_def("css", "http://jigsaw.w3.org/css-validator/images/vcss" ,{:title=>"Optional title attribute"}),
|
50
|
+
md_ref_def("css2", "http://jigsaw.w3.org/css-validator/images/vcss" ,{:title=>"Optional title attribute"})
|
51
|
+
] )
|
52
|
+
*** Output of to_html ***
|
53
|
+
|
54
|
+
<p>This page does not uilizes <img src='http://jigsaw.w3.org/css-validator/images/vcss' /></p>
|
55
|
+
|
56
|
+
<p>Please mouseover to see the title: <img title='Title ok!' src='http://jigsaw.w3.org/css-validator/images/vcss' /></p>
|
57
|
+
|
58
|
+
<p>Please mouseover to see the title: <img title='Title ok!' src='http://jigsaw.w3.org/css-validator/images/vcss' /></p>
|
59
|
+
|
60
|
+
<p>I'll say it one more time: this page does not use <img title='Optional title attribute' src='http://jigsaw.w3.org/css-validator/images/vcss' /></p>
|
61
|
+
|
62
|
+
<p>This is double size: <img class='external' title='Optional title attribute' src='http://jigsaw.w3.org/css-validator/images/vcss' style='border:0;width:188px;height:131px' /></p>
|
63
|
+
|
64
|
+
*** Output of to_latex ***
|
65
|
+
This page does not uilizes
|
66
|
+
|
67
|
+
Please mouseover to see the title:
|
68
|
+
|
69
|
+
Please mouseover to see the title:
|
70
|
+
|
71
|
+
I'll say it one more time: this page does not use {\bf Images not supported yet (\char104\char116\char116\char112\char58\char47\char47\char106\char105\char103\char115\char97\char119\char46\char119\char51\char46\char111\char114\char103\char47\char99\char115\char115\char45\char118\char97\char108\char105\char100\char97\char116\char111\char114\char47\char105\char109\char97\char103\char101\char115\char47\char118\char99\char115\char115)}
|
72
|
+
|
73
|
+
This is double size: {\bf Images not supported yet (\char104\char116\char116\char112\char58\char47\char47\char106\char105\char103\char115\char97\char119\char46\char119\char51\char46\char111\char114\char103\char47\char99\char115\char115\char45\char118\char97\char108\char105\char100\char97\char116\char111\char114\char47\char105\char109\char97\char103\char101\char115\char47\char118\char99\char115\char115)}
|
74
|
+
|
75
|
+
|
76
|
+
*** Output of to_s ***
|
77
|
+
This page does not uilizes Cascading Style SheetsPlease mouseover to see the title: Cascading Style SheetsPlease mouseover to see the title: Cascading Style SheetsI'll say it one more time: this page does not use Cascading Style SheetsThis is double size: Cascading Style Sheets
|
78
|
+
*** Output of to_s ***
|
79
|
+
This page does not uilizes Cascading Style SheetsPlease mouseover to see the title: Cascading Style SheetsPlease mouseover to see the title: Cascading Style SheetsI'll say it one more time: this page does not use Cascading Style SheetsThis is double size: Cascading Style Sheets
|
80
|
+
*** EOF ***
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
OK!
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
*** Output of Markdown.pl ***
|
89
|
+
<p>This page does not uilizes <img src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Cascading Style Sheets" title="" /></p>
|
90
|
+
|
91
|
+
<p>Please mouseover to see the title: <img src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Cascading Style Sheets" title="Title ok!" /></p>
|
92
|
+
|
93
|
+
<p>Please mouseover to see the title: <img src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Cascading Style Sheets" title="Title ok!" /></p>
|
94
|
+
|
95
|
+
<p>I'll say it one more time: this page does not use <img src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Cascading Style Sheets" title="Optional title attribute" /></p>
|
96
|
+
|
97
|
+
<p>This is double size: ![Cascading Style Sheets] [css2]</p>
|
98
|
+
|
99
|
+
<p>[css2]: http://jigsaw.w3.org/css-validator/images/vcss "Optional title attribute" class=external
|
100
|
+
style="border:0;width:188px;height:131px"</p>
|
101
|
+
|
102
|
+
*** Output of Markdown.pl (parsed) ***
|
103
|
+
<p>This page does not uilizes <img title='' src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets'/
|
104
|
+
></p
|
105
|
+
><p>Please mouseover to see the title: <img title='Title ok!' src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets'/
|
106
|
+
></p
|
107
|
+
><p>Please mouseover to see the title: <img title='Title ok!' src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets'/
|
108
|
+
></p
|
109
|
+
><p>I'll say it one more time: this page does not use <img title='Optional title attribute' src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets'/
|
110
|
+
></p
|
111
|
+
><p>This is double size: ![Cascading Style Sheets] [css2]</p
|
112
|
+
><p>[css2]: http://jigsaw.w3.org/css-validator/images/vcss "Optional title attribute" class=external
|
113
|
+
style="border:0;width:188px;height:131px"</p
|
114
|
+
>
|
@@ -0,0 +1,185 @@
|
|
1
|
+
Write a comment abouth the test here.
|
2
|
+
*** Parameters: ***
|
3
|
+
{:css=>"style.css"}
|
4
|
+
*** Markdown input: ***
|
5
|
+
CSS: style.css
|
6
|
+
|
7
|
+
Input:
|
8
|
+
<em>Emphasis</em>
|
9
|
+
Result: <em>Emphasis</em>
|
10
|
+
|
11
|
+
Input:
|
12
|
+
<img src="http://jigsaw.w3.org/css-validator/images/vcss"/>
|
13
|
+
Result on span: <img src="http://jigsaw.w3.org/css-validator/images/vcss"/>
|
14
|
+
|
15
|
+
Result alone:
|
16
|
+
|
17
|
+
<img src="http://jigsaw.w3.org/css-validator/images/vcss"/>
|
18
|
+
|
19
|
+
Without closing:
|
20
|
+
|
21
|
+
<img src="http://jigsaw.w3.org/css-validator/images/vcss">
|
22
|
+
|
23
|
+
<div markdown="1">
|
24
|
+
This is *true* markdown text (paragraph)
|
25
|
+
|
26
|
+
<p markdown="1">
|
27
|
+
This is *true* markdown text (no paragraph)
|
28
|
+
</p>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<table>
|
32
|
+
<tr>
|
33
|
+
<td markdown="1">This is *true* markdown text. (no par)</td>
|
34
|
+
<td markdown="block">This is *true* markdown text. (par)</td>
|
35
|
+
</tr>
|
36
|
+
</table>
|
37
|
+
|
38
|
+
|
39
|
+
The following is invalid HTML, and will generate an error:
|
40
|
+
|
41
|
+
<table>
|
42
|
+
<td markdown="1">This is *true* markdown text. (no par)</td>
|
43
|
+
<td markdown="block">This is *true* markdown text. (par)</td>
|
44
|
+
</tr>
|
45
|
+
</table>
|
46
|
+
|
47
|
+
|
48
|
+
*** Output of inspect ***
|
49
|
+
md_el(:document,[
|
50
|
+
md_par([
|
51
|
+
"Input: ",
|
52
|
+
md_html("<em>Emphasis</em>"),
|
53
|
+
" Result: ",
|
54
|
+
md_html("<em>Emphasis</em>")
|
55
|
+
]),
|
56
|
+
md_par([
|
57
|
+
"Input: ",
|
58
|
+
md_html("<img src=\"http://jigsaw.w3.org/css-validator/images/vcss\" />"),
|
59
|
+
" Result on span: ",
|
60
|
+
md_html("<img src=\"http://jigsaw.w3.org/css-validator/images/vcss\" />")
|
61
|
+
]),
|
62
|
+
md_par(["Result alone: "]),
|
63
|
+
md_html("<img src=\"http://jigsaw.w3.org/css-validator/images/vcss\" />"),
|
64
|
+
md_par(["Without closing:"]),
|
65
|
+
md_html("<img src=\"http://jigsaw.w3.org/css-validator/images/vcss\" />"),
|
66
|
+
md_html("<div markdown=\"1\">\n\tThis is *true* markdown text (paragraph)\n\n\t<p markdown=\"1\">\n\t\tThis is *true* markdown text (no paragraph)\n\t</p>\n</div>"),
|
67
|
+
md_html("<table>\n<tr>\n<td markdown=\"1\">This is *true* markdown text. (no par)</td>\n<td markdown=\"block\">This is *true* markdown text. (par)</td>\n</tr>\n</table>"),
|
68
|
+
md_par(["The following is invalid HTML, and will generate an error:"]),
|
69
|
+
md_html("<table>\n<td markdown=\"1\">This is *true* markdown text. (no par)</td>\n<td markdown=\"block\">This is *true* markdown text. (par)</td>\n</tr>"),
|
70
|
+
md_html("</table>")
|
71
|
+
] , {:css=>"style.css"})
|
72
|
+
*** Output of to_html ***
|
73
|
+
|
74
|
+
<p>Input: <em>Emphasis</em> Result: <em>Emphasis</em></p>
|
75
|
+
|
76
|
+
<p>Input: <img src='http://jigsaw.w3.org/css-validator/images/vcss' /> Result on span: <img src='http://jigsaw.w3.org/css-validator/images/vcss' /></p>
|
77
|
+
|
78
|
+
<p>Result alone: </p>
|
79
|
+
<img src='http://jigsaw.w3.org/css-validator/images/vcss' />
|
80
|
+
<p>Without closing:</p>
|
81
|
+
<img src='http://jigsaw.w3.org/css-validator/images/vcss' />
|
82
|
+
<div>
|
83
|
+
<p>This is <em>true</em> markdown text (paragraph)</p>
|
84
|
+
|
85
|
+
<p>This is <em>true</em> markdown text (no paragraph)</p>
|
86
|
+
</div>
|
87
|
+
|
88
|
+
<table>
|
89
|
+
|
90
|
+
<tr>
|
91
|
+
|
92
|
+
<td>This is <em>true</em> markdown text. (no par)</td>
|
93
|
+
|
94
|
+
|
95
|
+
<td>
|
96
|
+
<p>This is <em>true</em> markdown text. (par)</p>
|
97
|
+
</td>
|
98
|
+
|
99
|
+
</tr>
|
100
|
+
|
101
|
+
</table>
|
102
|
+
|
103
|
+
<p>The following is invalid HTML, and will generate an error:</p>
|
104
|
+
|
105
|
+
<pre class='markdown-html-error' style='border: solid 3px red; background-color: pink'>HTML parse error:
|
106
|
+
<table>
|
107
|
+
<td markdown="1">This is *true* markdown text. (no par)</td>
|
108
|
+
<td markdown="block">This is *true* markdown text. (par)</td>
|
109
|
+
</tr></pre>
|
110
|
+
|
111
|
+
<pre class='markdown-html-error' style='border: solid 3px red; background-color: pink'>HTML parse error:
|
112
|
+
</table></pre>
|
113
|
+
|
114
|
+
*** Output of to_latex ***
|
115
|
+
Input: {\bf Raw HTML removed in latex version } Result: {\bf Raw HTML removed in latex version }
|
116
|
+
|
117
|
+
Input: {\bf Raw HTML removed in latex version } Result on span: {\bf Raw HTML removed in latex version }
|
118
|
+
|
119
|
+
Result alone:
|
120
|
+
|
121
|
+
{\bf Raw HTML removed in latex version }Without closing:
|
122
|
+
|
123
|
+
{\bf Raw HTML removed in latex version }{\bf Raw HTML removed in latex version }{\bf Raw HTML removed in latex version }The following is invalid HTML, and will generate an error:
|
124
|
+
|
125
|
+
{\bf Raw HTML removed in latex version }{\bf Raw HTML removed in latex version }
|
126
|
+
*** Output of to_s ***
|
127
|
+
Input: Result: Input: Result on span: Result alone: Without closing:The following is invalid HTML, and will generate an error:
|
128
|
+
*** Output of to_s ***
|
129
|
+
Input: Result: Input: Result on span: Result alone: Without closing:The following is invalid HTML, and will generate an error:
|
130
|
+
*** EOF ***
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
OK!
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
*** Output of Markdown.pl ***
|
139
|
+
<p>CSS: style.css</p>
|
140
|
+
|
141
|
+
<p>Input:
|
142
|
+
<em>Emphasis</em>
|
143
|
+
Result: <em>Emphasis</em></p>
|
144
|
+
|
145
|
+
<p>Input:
|
146
|
+
<img src="http://jigsaw.w3.org/css-validator/images/vcss"/>
|
147
|
+
Result on span: <img src="http://jigsaw.w3.org/css-validator/images/vcss"/></p>
|
148
|
+
|
149
|
+
<p>Result alone: </p>
|
150
|
+
|
151
|
+
<p><img src="http://jigsaw.w3.org/css-validator/images/vcss"/></p>
|
152
|
+
|
153
|
+
<p>Without closing:</p>
|
154
|
+
|
155
|
+
<p><img src="http://jigsaw.w3.org/css-validator/images/vcss"></p>
|
156
|
+
|
157
|
+
<div markdown="1">
|
158
|
+
This is *true* markdown text (paragraph)
|
159
|
+
|
160
|
+
<p markdown="1">
|
161
|
+
This is *true* markdown text (no paragraph)
|
162
|
+
</p>
|
163
|
+
</div>
|
164
|
+
|
165
|
+
<table>
|
166
|
+
<tr>
|
167
|
+
<td markdown="1">This is *true* markdown text. (no par)</td>
|
168
|
+
<td markdown="block">This is *true* markdown text. (par)</td>
|
169
|
+
</tr>
|
170
|
+
</table>
|
171
|
+
|
172
|
+
<p>The following is invalid HTML, and will generate an error:</p>
|
173
|
+
|
174
|
+
<table>
|
175
|
+
<td markdown="1">This is *true* markdown text. (no par)</td>
|
176
|
+
<td markdown="block">This is *true* markdown text. (par)</td>
|
177
|
+
</tr>
|
178
|
+
</table>
|
179
|
+
|
180
|
+
*** Output of Markdown.pl (parsed) ***
|
181
|
+
Error: #<REXML::ParseException: Missing end tag for 'img' (got "p")
|
182
|
+
Line:
|
183
|
+
Position:
|
184
|
+
Last 80 unconsumed characters:
|
185
|
+
<div markdown="1"> This is *true* markdown text (paragraph) <p markdow>
|
@@ -0,0 +1,162 @@
|
|
1
|
+
Write a comment abouth the test here.
|
2
|
+
*** Parameters: ***
|
3
|
+
{:on_error=>:warning}
|
4
|
+
*** Markdown input: ***
|
5
|
+
|
6
|
+
Search on [Google][]
|
7
|
+
|
8
|
+
Search on [Google] []
|
9
|
+
|
10
|
+
Search on [Google] [google]
|
11
|
+
|
12
|
+
Search on [Google] [Google]
|
13
|
+
|
14
|
+
Search on [Google images][]
|
15
|
+
|
16
|
+
Inline: [Google images](http://google.com)
|
17
|
+
|
18
|
+
Inline with title: [Google images](http://google.com "Title")
|
19
|
+
|
20
|
+
Inline with title: [Google images]( http://google.com "Title" )
|
21
|
+
|
22
|
+
|
23
|
+
Search on <http://www.gogole.com> or <http://Here.com> or ask <mailto:bill@google.com>
|
24
|
+
or you might ask bill@google.com.
|
25
|
+
|
26
|
+
If all else fails, ask [Google](http://www.google.com)
|
27
|
+
|
28
|
+
[google]: http://www.google.com
|
29
|
+
|
30
|
+
[google2]: http://www.google.com 'Single quotes'
|
31
|
+
|
32
|
+
[google3]: http://www.google.com "Double quotes"
|
33
|
+
|
34
|
+
[google4]: http://www.google.com (Parenthesis)
|
35
|
+
|
36
|
+
[Google Search]:
|
37
|
+
http://www.google.com "Google search"
|
38
|
+
|
39
|
+
[Google Images]:
|
40
|
+
http://images.google.com (Google images)
|
41
|
+
*** Output of inspect ***
|
42
|
+
md_el(:document,[
|
43
|
+
md_par(["Search on ", md_link(["Google"],"")]),
|
44
|
+
md_par(["Search on ", md_link(["Google"],"")]),
|
45
|
+
md_par(["Search on ", md_link(["Google"],"google")]),
|
46
|
+
md_par(["Search on ", md_link(["Google"],"google")]),
|
47
|
+
md_par(["Search on ", md_link(["Google images"],"")]),
|
48
|
+
md_par(["Inline: ", md_im_link(["Google images"], "http://google.com" )]),
|
49
|
+
md_par([
|
50
|
+
"Inline with title: ",
|
51
|
+
md_im_link(["Google images"], "http://google.com" , "Title")
|
52
|
+
]),
|
53
|
+
md_par([
|
54
|
+
"Inline with title: ",
|
55
|
+
md_im_link(["Google images"], "http://google.com" , "Title")
|
56
|
+
]),
|
57
|
+
md_par([
|
58
|
+
"Search on ",
|
59
|
+
md_url("http://www.gogole.com"),
|
60
|
+
" or ",
|
61
|
+
md_url("http://Here.com"),
|
62
|
+
" or ask ",
|
63
|
+
md_email("bill@google.com"),
|
64
|
+
" or you might ask bill@google.com."
|
65
|
+
]),
|
66
|
+
md_par([
|
67
|
+
"If all else fails, ask ",
|
68
|
+
md_im_link(["Google"], "http://www.google.com" )
|
69
|
+
]),
|
70
|
+
md_ref_def("google", "http://www.google.com" ,{:title=>nil}),
|
71
|
+
md_ref_def("google2", "http://www.google.com" ,{:title=>"Single quotes"}),
|
72
|
+
md_ref_def("google3", "http://www.google.com" ,{:title=>"Double quotes"}),
|
73
|
+
md_ref_def("google4", "http://www.google.com" ,{:title=>"Parenthesis"}),
|
74
|
+
md_ref_def("google search", "http://www.google.com" ,{:title=>"Google search"}),
|
75
|
+
md_ref_def("google images", "http://images.google.com" ,{:title=>"Google images"})
|
76
|
+
] , {:on_error=>:warning})
|
77
|
+
*** Output of to_html ***
|
78
|
+
|
79
|
+
<p>Search on <a href='http://www.google.com'>Google</a></p>
|
80
|
+
|
81
|
+
<p>Search on <a href='http://www.google.com'>Google</a></p>
|
82
|
+
|
83
|
+
<p>Search on <a href='http://www.google.com'>Google</a></p>
|
84
|
+
|
85
|
+
<p>Search on <a href='http://www.google.com'>Google</a></p>
|
86
|
+
|
87
|
+
<p>Search on <a href='http://images.google.com' title='Google images'>Google images</a></p>
|
88
|
+
|
89
|
+
<p>Inline: <a href='http://google.com'>Google images</a></p>
|
90
|
+
|
91
|
+
<p>Inline with title: <a href='http://google.com' title='Title'>Google images</a></p>
|
92
|
+
|
93
|
+
<p>Inline with title: <a href='http://google.com' title='Title'>Google images</a></p>
|
94
|
+
|
95
|
+
<p>Search on <a href='http://www.gogole.com'>http://www.gogole.com</a> or <a href='http://Here.com'>http://Here.com</a> or ask <a href='mailto:bill@google.com'>bill@google.com</a> or you might ask bill@google.com.</p>
|
96
|
+
|
97
|
+
<p>If all else fails, ask <a href='http://www.google.com'>Google</a></p>
|
98
|
+
|
99
|
+
*** Output of to_latex ***
|
100
|
+
Search on \href{http://www.google.com}{Google}
|
101
|
+
|
102
|
+
Search on \href{http://www.google.com}{Google}
|
103
|
+
|
104
|
+
Search on \href{http://www.google.com}{Google}
|
105
|
+
|
106
|
+
Search on \href{http://www.google.com}{Google}
|
107
|
+
|
108
|
+
Search on \href{http://images.google.com}{Google images}
|
109
|
+
|
110
|
+
Inline: \href{http://google.com}{Google images}
|
111
|
+
|
112
|
+
Inline with title: \href{http://google.com}{Google images}
|
113
|
+
|
114
|
+
Inline with title: \href{http://google.com}{Google images}
|
115
|
+
|
116
|
+
Search on \href{http://www.gogole.com}{http://www.gogole.com} or \href{http://Here.com}{http://Here.com} or ask \href{mailto:bill@google.com}{\char98\char105\char108\char108\char64\char103\char111\char111\char103\char108\char101\char46\char99\char111\char109} or you might ask bill@google.com.
|
117
|
+
|
118
|
+
If all else fails, ask \href{http://www.google.com}{Google}
|
119
|
+
|
120
|
+
|
121
|
+
*** Output of to_s ***
|
122
|
+
Search on GoogleSearch on GoogleSearch on GoogleSearch on GoogleSearch on Google imagesInline: Google imagesInline with title: Google imagesInline with title: Google imagesSearch on or or ask or you might ask bill@google.com.If all else fails, ask Google
|
123
|
+
*** Output of to_s ***
|
124
|
+
Search on GoogleSearch on GoogleSearch on GoogleSearch on GoogleSearch on Google imagesInline: Google imagesInline with title: Google imagesInline with title: Google imagesSearch on or or ask or you might ask bill@google.com.If all else fails, ask Google
|
125
|
+
*** EOF ***
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
OK!
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
*** Output of Markdown.pl ***
|
134
|
+
<p>Search on <a href="http://www.google.com">Google</a></p>
|
135
|
+
|
136
|
+
<p>Search on <a href="http://www.google.com">Google</a></p>
|
137
|
+
|
138
|
+
<p>Search on <a href="http://www.google.com">Google</a></p>
|
139
|
+
|
140
|
+
<p>Search on <a href="http://www.google.com">Google</a></p>
|
141
|
+
|
142
|
+
<p>Search on <a href="http://images.google.com" title="Google images">Google images</a></p>
|
143
|
+
|
144
|
+
<p>Inline: <a href="http://google.com">Google images</a></p>
|
145
|
+
|
146
|
+
<p>Inline with title: <a href="http://google.com" title="Title">Google images</a></p>
|
147
|
+
|
148
|
+
<p>Inline with title: <a href="http://google.com "Title"">Google images</a></p>
|
149
|
+
|
150
|
+
<p>Search on <a href="http://www.gogole.com">http://www.gogole.com</a> or <a href="http://Here.com">http://Here.com</a> or ask <a href="mailto:bill@google.com">bill@google.com</a>
|
151
|
+
or you might ask bill@google.com.</p>
|
152
|
+
|
153
|
+
<p>If all else fails, ask <a href="http://www.google.com">Google</a></p>
|
154
|
+
|
155
|
+
<p>[google2]: http://www.google.com 'Single quotes'</p>
|
156
|
+
|
157
|
+
*** Output of Markdown.pl (parsed) ***
|
158
|
+
Error: #<REXML::ParseException: Missing end tag for 'p' (got "div")
|
159
|
+
Line:
|
160
|
+
Position:
|
161
|
+
Last 80 unconsumed characters:
|
162
|
+
>
|