rpeg-multimarkdown 0.1.1 → 0.2
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.
- checksums.yaml +7 -0
- data/README.markdown +7 -4
- data/Rakefile +3 -3
- data/bin/rpeg-multimarkdown +7 -7
- data/ext/extconf.rb +2 -2
- data/ext/markdown.c +14 -0
- data/ext/markdown_lib.c +72 -18
- data/ext/markdown_lib.h +18 -8
- data/ext/markdown_output.c +187 -58
- data/ext/markdown_parser.c +8315 -6224
- data/ext/markdown_peg.h +5 -4
- data/ext/odf.c +7 -1
- data/ext/odf.h +8 -0
- data/ext/parsing_functions.c +42 -2
- data/ext/parsing_functions.h +17 -0
- data/ext/utility_functions.c +60 -56
- data/ext/utility_functions.h +93 -0
- data/lib/peg_multimarkdown.rb +16 -16
- data/test/MultiMarkdownTest/BeamerTests/Beamer-Tables.tex +2 -2
- data/test/MultiMarkdownTest/CompatibilityTests/Automatic Labels.html +35 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Automatic Labels.text +45 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Base Header Level.html +14 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Base Header Level.text +16 -0
- data/test/MultiMarkdownTest/CompatibilityTests/BibTeX.html +9 -0
- data/test/MultiMarkdownTest/CompatibilityTests/BibTeX.text +10 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Citations.html +40 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Citations.text +42 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Definition Lists.html +40 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Definition Lists.text +39 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Dutch.html +17 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Dutch.text +17 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Email.html +40 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Email.text +31 -0
- data/test/MultiMarkdownTest/CompatibilityTests/English.html +17 -0
- data/test/MultiMarkdownTest/CompatibilityTests/English.text +17 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Errors.html +9 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Errors.text +11 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Footnotes.html +23 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Footnotes.text +25 -0
- data/test/MultiMarkdownTest/CompatibilityTests/French.html +17 -0
- data/test/MultiMarkdownTest/CompatibilityTests/French.text +17 -0
- data/test/MultiMarkdownTest/CompatibilityTests/German.html +17 -0
- data/test/MultiMarkdownTest/CompatibilityTests/German.text +17 -0
- data/test/MultiMarkdownTest/CompatibilityTests/GermanGuillemets.html +17 -0
- data/test/MultiMarkdownTest/CompatibilityTests/GermanGuillemets.text +17 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Glossary.html +29 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Glossary.text +28 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Headers.html +42 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Headers.text +51 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Line Breaks.html +13 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Line Breaks.text +15 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Link Attributes.html +35 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Link Attributes.text +51 -0
- data/test/MultiMarkdownTest/CompatibilityTests/List Parsing.html +13 -0
- data/test/MultiMarkdownTest/CompatibilityTests/List Parsing.text +11 -0
- data/test/MultiMarkdownTest/CompatibilityTests/MarkdownInHTML.html +13 -0
- data/test/MultiMarkdownTest/CompatibilityTests/MarkdownInHTML.text +19 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Math.html +14 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Math.text +15 -0
- data/test/MultiMarkdownTest/CompatibilityTests/MetaData.html +14 -0
- data/test/MultiMarkdownTest/CompatibilityTests/MetaData.text +14 -0
- data/test/MultiMarkdownTest/CompatibilityTests/NotMetaData.html +3 -0
- data/test/MultiMarkdownTest/CompatibilityTests/NotMetaData.text +4 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Sanity.html +77 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Sanity.text +77 -0
- data/test/MultiMarkdownTest/CompatibilityTests/SmartQuotes.html +22 -0
- data/test/MultiMarkdownTest/CompatibilityTests/SmartQuotes.text +22 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Swedish.html +17 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Swedish.text +17 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Tables.html +65 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Tables.text +71 -0
- data/test/MultiMarkdownTest/MemoirTests/Definition Lists.tex +5 -10
- data/test/MultiMarkdownTest/MemoirTests/Sanity.tex +2 -2
- data/test/MultiMarkdownTest/MemoirTests/Tables.tex +10 -10
- data/test/MultiMarkdownTest/MultiMarkdownTests/Automatic Labels.html +4 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/Base Header Level.html +4 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/BibTeX.html +4 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/Citations.html +6 -4
- data/test/MultiMarkdownTest/MultiMarkdownTests/Definition Lists.html +9 -12
- data/test/MultiMarkdownTest/MultiMarkdownTests/Definition Lists.tex +5 -10
- data/test/MultiMarkdownTest/MultiMarkdownTests/Dutch.html +4 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/Email.html +4 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/English.html +4 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/Errors.html +4 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/Footnotes.html +7 -5
- data/test/MultiMarkdownTest/MultiMarkdownTests/French.html +4 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/German.html +4 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/GermanGuillemets.html +4 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/Glossary.html +6 -4
- data/test/MultiMarkdownTest/MultiMarkdownTests/Headers.html +6 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/Headers.tex +2 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Headers.text +2 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Line Breaks.html +4 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/Link Attributes.html +4 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/List Parsing.html +4 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/MarkdownInHTML.html +4 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/Math.html +4 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/MetaData.html +4 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/NotMetaData.html +3 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/NotMetaData.tex +3 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/NotMetaData.text +4 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Sanity.html +4 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/Sanity.tex +2 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/SmartQuotes.html +4 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/Swedish.html +4 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/Tables.html +45 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/Tables.tex +32 -10
- data/test/MultiMarkdownTest/MultiMarkdownTests/Tables.text +8 -0
- data/test/multimarkdown_test.rb +5 -5
- metadata +92 -50
@@ -1,7 +1,7 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
|
2
1
|
<!DOCTYPE html>
|
3
|
-
<html
|
2
|
+
<html>
|
4
3
|
<head>
|
4
|
+
<meta charset="utf-8"/>
|
5
5
|
<meta name="latexinput" content="mmd-article-header"/>
|
6
6
|
<title>This should be a <title> element</title>
|
7
7
|
<meta name="author" content="This should be the author"/>
|
@@ -16,6 +16,8 @@ content="This test should fail in LaTeX from XSLT"/>
|
|
16
16
|
<meta name="latexfooter" content="mmd-memoir-footer"/>
|
17
17
|
</head>
|
18
18
|
<body>
|
19
|
+
|
19
20
|
<p>And this should be the main text.</p>
|
21
|
+
|
20
22
|
</body>
|
21
23
|
</html>
|
@@ -1,13 +1,14 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
|
2
1
|
<!DOCTYPE html>
|
3
|
-
<html
|
2
|
+
<html>
|
4
3
|
<head>
|
4
|
+
<meta charset="utf-8"/>
|
5
5
|
<meta name="latexinput" content="mmd-article-header"/>
|
6
6
|
<title>MultiMarkdown Sanity Test</title>
|
7
7
|
<meta name="latexinput" content="mmd-article-begin-doc"/>
|
8
8
|
<meta name="latexfooter" content="mmd-memoir-footer"/>
|
9
9
|
</head>
|
10
10
|
<body>
|
11
|
+
|
11
12
|
<h1 id="section">Section</h1>
|
12
13
|
|
13
14
|
<p>Sanity check by Jonathan Coulombe</p>
|
@@ -100,5 +101,6 @@ Nowhere <a href="#nowhere"></a></p>
|
|
100
101
|
</tbody>
|
101
102
|
</table>
|
102
103
|
|
104
|
+
|
103
105
|
</body>
|
104
106
|
</html>
|
@@ -83,14 +83,14 @@ Nowhere \autoref{nowhere}
|
|
83
83
|
\small
|
84
84
|
\caption{table}
|
85
85
|
\label{table}
|
86
|
-
\begin{
|
86
|
+
\begin{tabulary}{\textwidth}{@{}LL@{}} \toprule
|
87
87
|
a&b\\
|
88
88
|
\midrule
|
89
89
|
x&y\\
|
90
90
|
|
91
91
|
\bottomrule
|
92
92
|
|
93
|
-
\end{
|
93
|
+
\end{tabulary}
|
94
94
|
\end{minipage}
|
95
95
|
\end{table}
|
96
96
|
|
@@ -1,13 +1,14 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
|
2
1
|
<!DOCTYPE html>
|
3
|
-
<html
|
2
|
+
<html>
|
4
3
|
<head>
|
4
|
+
<meta charset="utf-8"/>
|
5
5
|
<meta name="latexinput" content="mmd-article-header"/>
|
6
6
|
<title>SmartQuotes Test</title>
|
7
7
|
<meta name="latexinput" content="mmd-article-begin-doc"/>
|
8
8
|
<meta name="latexfooter" content="mmd-memoir-footer"/>
|
9
9
|
</head>
|
10
10
|
<body>
|
11
|
+
|
11
12
|
<p>Some rather complicated tests for smart quotes with non-ascii input.</p>
|
12
13
|
|
13
14
|
<p>l’année l’année</p>
|
@@ -25,5 +26,6 @@
|
|
25
26
|
<p>Another test of smart ‘.quotes’</p>
|
26
27
|
|
27
28
|
<p>And again “.quotes”</p>
|
29
|
+
|
28
30
|
</body>
|
29
31
|
</html>
|
@@ -1,13 +1,14 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
|
2
1
|
<!DOCTYPE html>
|
3
|
-
<html
|
2
|
+
<html>
|
4
3
|
<head>
|
4
|
+
<meta charset="utf-8"/>
|
5
5
|
<meta name="latexinput" content="mmd-article-header"/>
|
6
6
|
<title>MultiMarkdown Swedish Test</title>
|
7
7
|
<meta name="latexinput" content="mmd-article-begin-doc"/>
|
8
8
|
<meta name="latexfooter" content="mmd-memoir-footer"/>
|
9
9
|
</head>
|
10
10
|
<body>
|
11
|
+
|
11
12
|
<p>’this is a single quote’</p>
|
12
13
|
|
13
14
|
<p>”this is a double quote”</p>
|
@@ -19,5 +20,6 @@
|
|
19
20
|
<p>this is an en – dash</p>
|
20
21
|
|
21
22
|
<p>and an ellipsis…</p>
|
23
|
+
|
22
24
|
</body>
|
23
25
|
</html>
|
@@ -1,7 +1,7 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
|
2
1
|
<!DOCTYPE html>
|
3
|
-
<html
|
2
|
+
<html>
|
4
3
|
<head>
|
4
|
+
<meta charset="utf-8"/>
|
5
5
|
<meta name="latexinput" content="mmd-article-header"/>
|
6
6
|
<title>MultiMarkdown Table Test</title>
|
7
7
|
<meta name="latexinput" content="mmd-article-begin-doc"/>
|
@@ -10,6 +10,7 @@
|
|
10
10
|
<body>
|
11
11
|
|
12
12
|
|
13
|
+
|
13
14
|
<table>
|
14
15
|
<caption id="prototypetable">Prototype table caption</caption>
|
15
16
|
<colgroup>
|
@@ -226,5 +227,47 @@
|
|
226
227
|
</tbody>
|
227
228
|
</table>
|
228
229
|
|
230
|
+
|
231
|
+
<table>
|
232
|
+
<caption id="linewrappingtest">Line Wrapping Test</caption>
|
233
|
+
<colgroup>
|
234
|
+
<col style="text-align:left;" class="extended"/>
|
235
|
+
<col style="text-align:center;"/>
|
236
|
+
<col style="text-align:center;"/>
|
237
|
+
</colgroup>
|
238
|
+
|
239
|
+
<thead>
|
240
|
+
<tr>
|
241
|
+
<th style="text-align:left;">Long Cell</th>
|
242
|
+
<th style="text-align:center;">MultiMarkdown</th>
|
243
|
+
<th style="text-align:center;">Crayons</th>
|
244
|
+
</tr>
|
245
|
+
</thead>
|
246
|
+
|
247
|
+
<tbody>
|
248
|
+
<tr>
|
249
|
+
<td style="text-align:left;">Melts in warm places</td>
|
250
|
+
<td style="text-align:center;">No</td>
|
251
|
+
<td style="text-align:center;">Yes</td>
|
252
|
+
</tr>
|
253
|
+
<tr>
|
254
|
+
<td style="text-align:left;">Mistakes can be easily fixed</td>
|
255
|
+
<td style="text-align:center;">Yes</td>
|
256
|
+
<td style="text-align:center;">No</td>
|
257
|
+
</tr>
|
258
|
+
<tr>
|
259
|
+
<td style="text-align:left;">Easy to copy documents for friends with some extra words to try and force a line break in every output format to test the wrapping feature</td>
|
260
|
+
<td style="text-align:center;">Yes</td>
|
261
|
+
<td style="text-align:center;">No</td>
|
262
|
+
</tr>
|
263
|
+
<tr>
|
264
|
+
<td style="text-align:left;">Fun at parties</td>
|
265
|
+
<td style="text-align:center;">No</td>
|
266
|
+
<td style="text-align:center;">Why not?</td>
|
267
|
+
</tr>
|
268
|
+
</tbody>
|
269
|
+
</table>
|
270
|
+
|
271
|
+
|
229
272
|
</body>
|
230
273
|
</html>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
\small
|
9
9
|
\caption{Prototype table caption}
|
10
10
|
\label{prototypetable}
|
11
|
-
\begin{
|
11
|
+
\begin{tabulary}{\textwidth}{@{}LCR@{}} \toprule
|
12
12
|
&\multicolumn{2}{c}{Grouping}\\
|
13
13
|
First Header&Second Header&Third Header\\
|
14
14
|
\midrule
|
@@ -21,7 +21,7 @@ And more&\multicolumn{2}{c}{With an escaped `\textbar{}'}\\
|
|
21
21
|
|
22
22
|
\bottomrule
|
23
23
|
|
24
|
-
\end{
|
24
|
+
\end{tabulary}
|
25
25
|
\end{minipage}
|
26
26
|
\end{table}
|
27
27
|
|
@@ -37,7 +37,7 @@ And now a table with only a caption.
|
|
37
37
|
\small
|
38
38
|
\caption{Caption but no label}
|
39
39
|
\label{captionbutnolabel}
|
40
|
-
\begin{
|
40
|
+
\begin{tabulary}{\textwidth}{@{}LCR@{}} \toprule
|
41
41
|
&\multicolumn{2}{c}{Grouping}\\
|
42
42
|
First Header&Second Header&Third Header\\
|
43
43
|
\midrule
|
@@ -50,7 +50,7 @@ And more&\multicolumn{2}{c}{With an escaped `\textbar{}'}\\
|
|
50
50
|
|
51
51
|
\bottomrule
|
52
52
|
|
53
|
-
\end{
|
53
|
+
\end{tabulary}
|
54
54
|
\end{minipage}
|
55
55
|
\end{table}
|
56
56
|
|
@@ -66,7 +66,7 @@ And two tables in close proximity:
|
|
66
66
|
\small
|
67
67
|
\caption{MultiMarkdown vs. Crayons}
|
68
68
|
\label{multimarkdownvs.crayons}
|
69
|
-
\begin{
|
69
|
+
\begin{tabulary}{\textwidth}{@{}LCC@{}} \toprule
|
70
70
|
Features&MultiMarkdown&Crayons\\
|
71
71
|
\midrule
|
72
72
|
Melts in warm places&No&Yes\\
|
@@ -79,7 +79,7 @@ Minimum markup1 for maximum quality?&Yes&No\\
|
|
79
79
|
|
80
80
|
\bottomrule
|
81
81
|
|
82
|
-
\end{
|
82
|
+
\end{tabulary}
|
83
83
|
\end{minipage}
|
84
84
|
\end{table}
|
85
85
|
|
@@ -91,7 +91,7 @@ Minimum markup1 for maximum quality?&Yes&No\\
|
|
91
91
|
\small
|
92
92
|
\caption{MultiMarkdown vs. Crayons2}
|
93
93
|
\label{multimarkdownvs.crayons2}
|
94
|
-
\begin{
|
94
|
+
\begin{tabulary}{\textwidth}{@{}LCC@{}} \toprule
|
95
95
|
Features&MultiMarkdown&Crayons\\
|
96
96
|
\midrule
|
97
97
|
Melts in warm places&No&Yes\\
|
@@ -104,7 +104,7 @@ Minimum markup2 for maximum quality?&Yes&No\\
|
|
104
104
|
|
105
105
|
\bottomrule
|
106
106
|
|
107
|
-
\end{
|
107
|
+
\end{tabulary}
|
108
108
|
\end{minipage}
|
109
109
|
\end{table}
|
110
110
|
|
@@ -116,14 +116,36 @@ Minimum markup2 for maximum quality?&Yes&No\\
|
|
116
116
|
\small
|
117
117
|
\caption{Caption only}
|
118
118
|
\label{captiononly}
|
119
|
-
\begin{
|
119
|
+
\begin{tabulary}{\textwidth}{@{}LL@{}} \toprule
|
120
120
|
Col 1&Col 2\\
|
121
121
|
\midrule
|
122
122
|
One&Two \\
|
123
123
|
|
124
124
|
\bottomrule
|
125
125
|
|
126
|
-
\end{
|
126
|
+
\end{tabulary}
|
127
|
+
\end{minipage}
|
128
|
+
\end{table}
|
129
|
+
|
130
|
+
|
131
|
+
\begin{table}[htbp]
|
132
|
+
\begin{minipage}{\linewidth}
|
133
|
+
\setlength{\tymax}{0.5\linewidth}
|
134
|
+
\centering
|
135
|
+
\small
|
136
|
+
\caption{Line Wrapping Test}
|
137
|
+
\label{linewrappingtest}
|
138
|
+
\begin{tabulary}{\textwidth}{@{}LCC@{}} \toprule
|
139
|
+
Long Cell&MultiMarkdown&Crayons\\
|
140
|
+
\midrule
|
141
|
+
Melts in warm places&No&Yes\\
|
142
|
+
Mistakes can be easily fixed&Yes&No\\
|
143
|
+
Easy to copy documents for friends with some extra words to try and force a line break in every output format to test the wrapping feature&Yes&No\\
|
144
|
+
Fun at parties&No&Why not?\\
|
145
|
+
|
146
|
+
\bottomrule
|
147
|
+
|
148
|
+
\end{tabulary}
|
127
149
|
\end{minipage}
|
128
150
|
\end{table}
|
129
151
|
|
@@ -61,3 +61,11 @@ Col 1 | Col 2
|
|
61
61
|
----- | -----
|
62
62
|
One | Two
|
63
63
|
|
64
|
+
|
65
|
+
[Line Wrapping Test]
|
66
|
+
| Long Cell | MultiMarkdown | Crayons |
|
67
|
+
----------------------------------+ | :-----------: | :------: |
|
68
|
+
Melts in warm places | No | Yes |
|
69
|
+
Mistakes can be easily fixed | Yes | No |
|
70
|
+
Easy to copy documents for friends with some extra words to try and force a line break in every output format to test the wrapping feature | Yes | No |
|
71
|
+
Fun at parties | No | Why not? |
|
data/test/multimarkdown_test.rb
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
$: << File.join(File.dirname(__FILE__), "../lib")
|
2
2
|
|
3
|
-
require '
|
3
|
+
require 'minitest'
|
4
4
|
require 'multimarkdown'
|
5
5
|
|
6
6
|
MARKDOWN_TEST_DIR = "#{File.dirname(__FILE__)}/MultiMarkdownTest"
|
7
7
|
|
8
|
-
class MultiMarkdownTest <
|
8
|
+
class MultiMarkdownTest < MiniTest::Unit::TestCase
|
9
9
|
|
10
10
|
def test_that_extension_methods_are_present_on_multimarkdown_class
|
11
|
-
assert MultiMarkdown.instance_methods.include?(
|
11
|
+
assert MultiMarkdown.instance_methods.include?(:to_html),
|
12
12
|
"MultiMarkdown class should respond to #to_html"
|
13
13
|
end
|
14
14
|
|
@@ -59,11 +59,11 @@ class MultiMarkdownTest < Test::Unit::TestCase
|
|
59
59
|
assert_nothing_raised(ArgumentError) { multimarkdown.to_html(true) }
|
60
60
|
end
|
61
61
|
|
62
|
-
|
62
|
+
|
63
63
|
|
64
64
|
# Build tests for each file in the MarkdownTest test suite
|
65
65
|
["Tests","MultiMarkdownTests","BeamerTests","MemoirTests"].each do |subdir|
|
66
|
-
|
66
|
+
|
67
67
|
Dir["#{MARKDOWN_TEST_DIR}/#{subdir}/*.text"].each do |text_file|
|
68
68
|
|
69
69
|
basename = File.basename(text_file).sub(/\.text$/, '')
|
metadata
CHANGED
@@ -1,57 +1,106 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rpeg-multimarkdown
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
- 1
|
10
|
-
version: 0.1.1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '0.2'
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Oliver Whyte
|
14
8
|
- Ryan Tomayko
|
15
9
|
autorequire:
|
16
10
|
bindir: bin
|
17
11
|
cert_chain: []
|
18
|
-
|
19
|
-
date: 2011-06-07 00:00:00 Z
|
12
|
+
date: 2014-08-17 00:00:00.000000000 Z
|
20
13
|
dependencies: []
|
21
|
-
|
22
|
-
|
23
|
-
|
14
|
+
description: |2
|
15
|
+
A Ruby extension to process MultiMarkdown-formatted
|
16
|
+
text, using Fletcher Penney's C peg-multimarkdown
|
17
|
+
implementation.
|
18
|
+
email:
|
24
19
|
- oawhyte@gmail.com
|
25
20
|
- r@tomayko.com
|
26
|
-
executables:
|
21
|
+
executables:
|
27
22
|
- rpeg-multimarkdown
|
28
|
-
extensions:
|
23
|
+
extensions:
|
29
24
|
- ext/extconf.rb
|
30
|
-
extra_rdoc_files:
|
25
|
+
extra_rdoc_files:
|
31
26
|
- LICENSE
|
32
|
-
files:
|
27
|
+
files:
|
33
28
|
- README.markdown
|
34
29
|
- LICENSE
|
35
30
|
- Rakefile
|
31
|
+
- ext/extconf.rb
|
36
32
|
- lib/multimarkdown.rb
|
37
33
|
- lib/peg_multimarkdown.rb
|
38
|
-
- ext/extconf.rb
|
39
34
|
- test/benchmark.rb
|
40
35
|
- test/multimarkdown_test.rb
|
36
|
+
- ext/extconf.h
|
41
37
|
- ext/markdown.c
|
42
38
|
- ext/markdown_lib.c
|
39
|
+
- ext/markdown_lib.h
|
43
40
|
- ext/markdown_output.c
|
44
41
|
- ext/markdown_parser.c
|
42
|
+
- ext/markdown_peg.h
|
45
43
|
- ext/odf.c
|
44
|
+
- ext/odf.h
|
46
45
|
- ext/parsing_functions.c
|
46
|
+
- ext/parsing_functions.h
|
47
47
|
- ext/utility_functions.c
|
48
|
-
- ext/
|
49
|
-
- ext/markdown_lib.h
|
50
|
-
- ext/markdown_peg.h
|
51
|
-
- ext/odf.h
|
48
|
+
- ext/utility_functions.h
|
52
49
|
- test/MultiMarkdownTest/BeamerTests/Beamer-Tables.html
|
53
50
|
- test/MultiMarkdownTest/BeamerTests/Beamer-Tables.tex
|
54
51
|
- test/MultiMarkdownTest/BeamerTests/Beamer-Tables.text
|
52
|
+
- test/MultiMarkdownTest/CompatibilityTests/Automatic Labels.html
|
53
|
+
- test/MultiMarkdownTest/CompatibilityTests/Automatic Labels.text
|
54
|
+
- test/MultiMarkdownTest/CompatibilityTests/Base Header Level.html
|
55
|
+
- test/MultiMarkdownTest/CompatibilityTests/Base Header Level.text
|
56
|
+
- test/MultiMarkdownTest/CompatibilityTests/BibTeX.html
|
57
|
+
- test/MultiMarkdownTest/CompatibilityTests/BibTeX.text
|
58
|
+
- test/MultiMarkdownTest/CompatibilityTests/Citations.html
|
59
|
+
- test/MultiMarkdownTest/CompatibilityTests/Citations.text
|
60
|
+
- test/MultiMarkdownTest/CompatibilityTests/Definition Lists.html
|
61
|
+
- test/MultiMarkdownTest/CompatibilityTests/Definition Lists.text
|
62
|
+
- test/MultiMarkdownTest/CompatibilityTests/Dutch.html
|
63
|
+
- test/MultiMarkdownTest/CompatibilityTests/Dutch.text
|
64
|
+
- test/MultiMarkdownTest/CompatibilityTests/Email.html
|
65
|
+
- test/MultiMarkdownTest/CompatibilityTests/Email.text
|
66
|
+
- test/MultiMarkdownTest/CompatibilityTests/English.html
|
67
|
+
- test/MultiMarkdownTest/CompatibilityTests/English.text
|
68
|
+
- test/MultiMarkdownTest/CompatibilityTests/Errors.html
|
69
|
+
- test/MultiMarkdownTest/CompatibilityTests/Errors.text
|
70
|
+
- test/MultiMarkdownTest/CompatibilityTests/Footnotes.html
|
71
|
+
- test/MultiMarkdownTest/CompatibilityTests/Footnotes.text
|
72
|
+
- test/MultiMarkdownTest/CompatibilityTests/French.html
|
73
|
+
- test/MultiMarkdownTest/CompatibilityTests/French.text
|
74
|
+
- test/MultiMarkdownTest/CompatibilityTests/German.html
|
75
|
+
- test/MultiMarkdownTest/CompatibilityTests/German.text
|
76
|
+
- test/MultiMarkdownTest/CompatibilityTests/GermanGuillemets.html
|
77
|
+
- test/MultiMarkdownTest/CompatibilityTests/GermanGuillemets.text
|
78
|
+
- test/MultiMarkdownTest/CompatibilityTests/Glossary.html
|
79
|
+
- test/MultiMarkdownTest/CompatibilityTests/Glossary.text
|
80
|
+
- test/MultiMarkdownTest/CompatibilityTests/Headers.html
|
81
|
+
- test/MultiMarkdownTest/CompatibilityTests/Headers.text
|
82
|
+
- test/MultiMarkdownTest/CompatibilityTests/Line Breaks.html
|
83
|
+
- test/MultiMarkdownTest/CompatibilityTests/Line Breaks.text
|
84
|
+
- test/MultiMarkdownTest/CompatibilityTests/Link Attributes.html
|
85
|
+
- test/MultiMarkdownTest/CompatibilityTests/Link Attributes.text
|
86
|
+
- test/MultiMarkdownTest/CompatibilityTests/List Parsing.html
|
87
|
+
- test/MultiMarkdownTest/CompatibilityTests/List Parsing.text
|
88
|
+
- test/MultiMarkdownTest/CompatibilityTests/MarkdownInHTML.html
|
89
|
+
- test/MultiMarkdownTest/CompatibilityTests/MarkdownInHTML.text
|
90
|
+
- test/MultiMarkdownTest/CompatibilityTests/Math.html
|
91
|
+
- test/MultiMarkdownTest/CompatibilityTests/Math.text
|
92
|
+
- test/MultiMarkdownTest/CompatibilityTests/MetaData.html
|
93
|
+
- test/MultiMarkdownTest/CompatibilityTests/MetaData.text
|
94
|
+
- test/MultiMarkdownTest/CompatibilityTests/NotMetaData.html
|
95
|
+
- test/MultiMarkdownTest/CompatibilityTests/NotMetaData.text
|
96
|
+
- test/MultiMarkdownTest/CompatibilityTests/Sanity.html
|
97
|
+
- test/MultiMarkdownTest/CompatibilityTests/Sanity.text
|
98
|
+
- test/MultiMarkdownTest/CompatibilityTests/SmartQuotes.html
|
99
|
+
- test/MultiMarkdownTest/CompatibilityTests/SmartQuotes.text
|
100
|
+
- test/MultiMarkdownTest/CompatibilityTests/Swedish.html
|
101
|
+
- test/MultiMarkdownTest/CompatibilityTests/Swedish.text
|
102
|
+
- test/MultiMarkdownTest/CompatibilityTests/Tables.html
|
103
|
+
- test/MultiMarkdownTest/CompatibilityTests/Tables.text
|
55
104
|
- test/MultiMarkdownTest/MarkdownTest.pl
|
56
105
|
- test/MultiMarkdownTest/MemoirTests/Automatic Labels.html
|
57
106
|
- test/MultiMarkdownTest/MemoirTests/Automatic Labels.tex
|
@@ -125,7 +174,6 @@ files:
|
|
125
174
|
- test/MultiMarkdownTest/MultiMarkdownTests/Base Header Level.html
|
126
175
|
- test/MultiMarkdownTest/MultiMarkdownTests/Base Header Level.tex
|
127
176
|
- test/MultiMarkdownTest/MultiMarkdownTests/Base Header Level.text
|
128
|
-
- test/MultiMarkdownTest/MultiMarkdownTests/bibtex.bib
|
129
177
|
- test/MultiMarkdownTest/MultiMarkdownTests/BibTeX.html
|
130
178
|
- test/MultiMarkdownTest/MultiMarkdownTests/BibTeX.tex
|
131
179
|
- test/MultiMarkdownTest/MultiMarkdownTests/BibTex.text
|
@@ -183,6 +231,9 @@ files:
|
|
183
231
|
- test/MultiMarkdownTest/MultiMarkdownTests/MetaData.html
|
184
232
|
- test/MultiMarkdownTest/MultiMarkdownTests/MetaData.tex
|
185
233
|
- test/MultiMarkdownTest/MultiMarkdownTests/MetaData.text
|
234
|
+
- test/MultiMarkdownTest/MultiMarkdownTests/NotMetaData.html
|
235
|
+
- test/MultiMarkdownTest/MultiMarkdownTests/NotMetaData.tex
|
236
|
+
- test/MultiMarkdownTest/MultiMarkdownTests/NotMetaData.text
|
186
237
|
- test/MultiMarkdownTest/MultiMarkdownTests/Sanity.html
|
187
238
|
- test/MultiMarkdownTest/MultiMarkdownTests/Sanity.tex
|
188
239
|
- test/MultiMarkdownTest/MultiMarkdownTests/Sanity.text
|
@@ -195,6 +246,7 @@ files:
|
|
195
246
|
- test/MultiMarkdownTest/MultiMarkdownTests/Tables.html
|
196
247
|
- test/MultiMarkdownTest/MultiMarkdownTests/Tables.tex
|
197
248
|
- test/MultiMarkdownTest/MultiMarkdownTests/Tables.text
|
249
|
+
- test/MultiMarkdownTest/MultiMarkdownTests/bibtex.bib
|
198
250
|
- test/MultiMarkdownTest/README.md
|
199
251
|
- test/MultiMarkdownTest/Tests/Amps and angle encoding.html
|
200
252
|
- test/MultiMarkdownTest/Tests/Amps and angle encoding.text
|
@@ -245,36 +297,26 @@ files:
|
|
245
297
|
- bin/rpeg-multimarkdown
|
246
298
|
homepage: http://github.com/djungelvral/rpeg-multimarkdown
|
247
299
|
licenses: []
|
248
|
-
|
300
|
+
metadata: {}
|
249
301
|
post_install_message:
|
250
302
|
rdoc_options: []
|
251
|
-
|
252
|
-
require_paths:
|
303
|
+
require_paths:
|
253
304
|
- lib
|
254
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
none: false
|
265
|
-
requirements:
|
266
|
-
- - ">="
|
267
|
-
- !ruby/object:Gem::Version
|
268
|
-
hash: 3
|
269
|
-
segments:
|
270
|
-
- 0
|
271
|
-
version: "0"
|
305
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
306
|
+
requirements:
|
307
|
+
- - '>='
|
308
|
+
- !ruby/object:Gem::Version
|
309
|
+
version: '0'
|
310
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
311
|
+
requirements:
|
312
|
+
- - '>='
|
313
|
+
- !ruby/object:Gem::Version
|
314
|
+
version: '0'
|
272
315
|
requirements: []
|
273
|
-
|
274
316
|
rubyforge_project: rpeg-multimarkdown
|
275
|
-
rubygems_version:
|
317
|
+
rubygems_version: 2.0.14
|
276
318
|
signing_key:
|
277
|
-
specification_version:
|
319
|
+
specification_version: 4
|
278
320
|
summary: Fast MultiMarkdown implementation
|
279
|
-
test_files:
|
321
|
+
test_files:
|
280
322
|
- test/multimarkdown_test.rb
|