maruku 0.5.4 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/maruku +2 -2
- data/docs/changelog.html +37 -51
- data/docs/changelog.md +40 -46
- data/docs/div_syntax.md +36 -0
- data/docs/other_stuff.md +51 -0
- data/lib/maruku/helpers.rb +1 -2
- data/lib/maruku/input/html_helper.rb +22 -8
- data/lib/maruku/input/parse_block.rb +9 -2
- data/lib/maruku/input/parse_span_better.rb +31 -13
- data/lib/maruku/input/type_detection.rb +6 -3
- data/lib/maruku/output/s5/to_s5.rb +50 -41
- data/lib/maruku/output/to_html.rb +4 -4
- data/lib/maruku/string_utils.rb +1 -1
- data/lib/maruku/version.rb +1 -1
- data/tests/s5/a.md +13 -0
- data/tests/s5/instiki+s5.md +105 -0
- data/tests/unittest/alt.md +39 -0
- data/tests/unittest/email.md +2 -2
- data/tests/unittest/hex_entities.md +57 -0
- data/tests/unittest/html2.md +49 -0
- data/tests/unittest/html3.md +61 -0
- data/tests/unittest/html4.md +47 -0
- data/tests/unittest/html5.md +45 -0
- data/tests/unittest/images.md +5 -5
- data/tests/unittest/images2.md +2 -2
- data/tests/unittest/links.md +1 -1
- data/tests/unittest/lists8.md +109 -0
- data/tests/unittest/lists9.md +105 -0
- data/tests/unittest/lists_after_paragraph.md +5 -6
- data/tests/unittest/loss.md +32 -0
- metadata +15 -2
@@ -71,8 +71,7 @@ md_el(:document,[
|
|
71
71
|
md_el(:header,["header"],{:level=>3},[]),
|
72
72
|
md_par(["Paragraph with header on two lines:"]),
|
73
73
|
md_el(:header,["header"],{:level=>2},[]),
|
74
|
-
md_par(["Paragraph with html after"]),
|
75
|
-
md_html("<div></div>"),
|
74
|
+
md_par(["Paragraph with html after ", md_html("<div></div>")]),
|
76
75
|
md_par([
|
77
76
|
"Paragraph with html after, indented: ",
|
78
77
|
md_html("<em>Emphasis</em>")
|
@@ -122,8 +121,8 @@ md_el(:document,[
|
|
122
121
|
|
123
122
|
<h2 id='header'>header</h2>
|
124
123
|
|
125
|
-
<p>Paragraph with html after
|
126
|
-
|
124
|
+
<p>Paragraph with html after <div /></p>
|
125
|
+
|
127
126
|
<p>Paragraph with html after, indented: <em>Emphasis</em></p>
|
128
127
|
|
129
128
|
<p>Paragraph with html after, indented: <em>Emphasis</em> <em>tralla</em> <em>Emph</em></p>
|
@@ -162,7 +161,7 @@ Paragraph with header on two lines:
|
|
162
161
|
|
163
162
|
\hypertarget{header}{}\subsection*{{header}}\label{header}
|
164
163
|
|
165
|
-
Paragraph with html after
|
164
|
+
Paragraph with html after
|
166
165
|
|
167
166
|
Paragraph with html after, indented:
|
168
167
|
|
@@ -212,7 +211,7 @@ Paragraph with html after, indented:
|
|
212
211
|
|
213
212
|
|
214
213
|
*** Output of to_s ***
|
215
|
-
Paragraph, list with no space: * ciaoParagraph, list with 1 space: * ciaoParagraph, list with 3 space: * ciaoParagraph, list with 4 spaces: * ciaoParagraph, list with 1 tab: * ciaoParagraph (1 space after), list with no space: * ciaoParagraph (2 spaces after), list with no space:* ciaoParagraph (3 spaces after), list with no space: * ciaoParagraph with block quote:QuotedParagraph with header:headerParagraph with header on two lines:headerParagraph with html
|
214
|
+
Paragraph, list with no space: * ciaoParagraph, list with 1 space: * ciaoParagraph, list with 3 space: * ciaoParagraph, list with 4 spaces: * ciaoParagraph, list with 1 tab: * ciaoParagraph (1 space after), list with no space: * ciaoParagraph (2 spaces after), list with no space:* ciaoParagraph (3 spaces after), list with no space: * ciaoParagraph with block quote:QuotedParagraph with header:headerParagraph with header on two lines:headerParagraph with html after Paragraph with html after, indented: Paragraph with html after, indented: tralla Paragraph with html after, indented:
|
216
215
|
*** EOF ***
|
217
216
|
|
218
217
|
|
@@ -0,0 +1,32 @@
|
|
1
|
+
Write a comment here
|
2
|
+
*** Parameters: ***
|
3
|
+
{} # params
|
4
|
+
*** Markdown input: ***
|
5
|
+
<br/>123
|
6
|
+
|
7
|
+
*** Output of inspect ***
|
8
|
+
md_el(:document,[md_html("<br />")],{},[])
|
9
|
+
*** Output of to_html ***
|
10
|
+
<br />
|
11
|
+
*** Output of to_latex ***
|
12
|
+
|
13
|
+
*** Output of to_md ***
|
14
|
+
|
15
|
+
*** Output of to_s ***
|
16
|
+
|
17
|
+
*** EOF ***
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
OK!
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
*** Output of Markdown.pl ***
|
26
|
+
<p><br/>123</p>
|
27
|
+
|
28
|
+
*** Output of Markdown.pl (parsed) ***
|
29
|
+
<p
|
30
|
+
><br/
|
31
|
+
>123</p
|
32
|
+
>
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.10
|
|
3
3
|
specification_version: 1
|
4
4
|
name: maruku
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.5.
|
7
|
-
date: 2007-
|
6
|
+
version: 0.5.5
|
7
|
+
date: 2007-03-07
|
8
8
|
summary: Maruku is a Markdown-superset interpreter written in Ruby.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -82,10 +82,12 @@ files:
|
|
82
82
|
- lib/maruku/tests/tests.rb
|
83
83
|
- lib/maruku/usage/example1.rb
|
84
84
|
- docs/changelog.md
|
85
|
+
- docs/div_syntax.md
|
85
86
|
- docs/entity_test.md
|
86
87
|
- docs/markdown_syntax.md
|
87
88
|
- docs/maruku.md
|
88
89
|
- docs/math.md
|
90
|
+
- docs/other_stuff.md
|
89
91
|
- docs/proposal.md
|
90
92
|
- docs/tmp.md
|
91
93
|
- docs/changelog.html
|
@@ -128,8 +130,11 @@ files:
|
|
128
130
|
- tests/others/paragraphs.md
|
129
131
|
- tests/others/sss06.md
|
130
132
|
- tests/others/test.md
|
133
|
+
- tests/s5/a.md
|
134
|
+
- tests/s5/instiki+s5.md
|
131
135
|
- tests/s5/s5profiling.md
|
132
136
|
- tests/unittest/abbreviations.md
|
137
|
+
- tests/unittest/alt.md
|
133
138
|
- tests/unittest/blank.md
|
134
139
|
- tests/unittest/blanks_in_code.md
|
135
140
|
- tests/unittest/bug_def.md
|
@@ -147,7 +152,12 @@ files:
|
|
147
152
|
- tests/unittest/extra_table1.md
|
148
153
|
- tests/unittest/footnotes.md
|
149
154
|
- tests/unittest/headers.md
|
155
|
+
- tests/unittest/hex_entities.md
|
150
156
|
- tests/unittest/hrule.md
|
157
|
+
- tests/unittest/html2.md
|
158
|
+
- tests/unittest/html3.md
|
159
|
+
- tests/unittest/html4.md
|
160
|
+
- tests/unittest/html5.md
|
151
161
|
- tests/unittest/ie.md
|
152
162
|
- tests/unittest/images.md
|
153
163
|
- tests/unittest/images2.md
|
@@ -161,8 +171,11 @@ files:
|
|
161
171
|
- tests/unittest/lists.md
|
162
172
|
- tests/unittest/lists6.md
|
163
173
|
- tests/unittest/lists7.md
|
174
|
+
- tests/unittest/lists8.md
|
175
|
+
- tests/unittest/lists9.md
|
164
176
|
- tests/unittest/lists_after_paragraph.md
|
165
177
|
- tests/unittest/lists_ol.md
|
178
|
+
- tests/unittest/loss.md
|
166
179
|
- tests/unittest/misc_sw.md
|
167
180
|
- tests/unittest/olist.md
|
168
181
|
- tests/unittest/one.md
|