greenmat 3.2.0.1 → 3.2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +14 -0
- data/CHANGELOG.md +15 -0
- data/greenmat.gemspec +3 -47
- data/lib/greenmat/cli.rb +86 -0
- data/lib/greenmat/version.rb +3 -0
- data/spec/greenmat/markdown_spec.rb +65 -0
- data/spec/spec_helper.rb +90 -0
- data/tasks/generate_xcode_project.rake +5 -0
- data/tasks/greenmat.rake +65 -0
- data/tasks/spec.rake +5 -0
- data/test/MarkdownTest_1.0.3/MarkdownTest.pl +181 -0
- data/test/MarkdownTest_1.0.3/Tests/Amps and angle encoding.html +17 -0
- data/test/MarkdownTest_1.0.3/Tests/Amps and angle encoding.text +21 -0
- data/test/MarkdownTest_1.0.3/Tests/Auto links.html +18 -0
- data/test/MarkdownTest_1.0.3/Tests/Auto links.text +13 -0
- data/test/MarkdownTest_1.0.3/Tests/Backslash escapes.html +118 -0
- data/test/MarkdownTest_1.0.3/Tests/Backslash escapes.text +120 -0
- data/test/MarkdownTest_1.0.3/Tests/Blockquotes with code blocks.html +15 -0
- data/test/MarkdownTest_1.0.3/Tests/Blockquotes with code blocks.text +11 -0
- data/test/MarkdownTest_1.0.3/Tests/Code Blocks.html +18 -0
- data/test/MarkdownTest_1.0.3/Tests/Code Blocks.text +14 -0
- data/test/MarkdownTest_1.0.3/Tests/Code Spans.html +6 -0
- data/test/MarkdownTest_1.0.3/Tests/Code Spans.text +6 -0
- data/test/MarkdownTest_1.0.3/Tests/Hard-wrapped paragraphs with list-like lines.html +8 -0
- data/test/MarkdownTest_1.0.3/Tests/Hard-wrapped paragraphs with list-like lines.text +8 -0
- data/test/MarkdownTest_1.0.3/Tests/Horizontal rules.html +71 -0
- data/test/MarkdownTest_1.0.3/Tests/Horizontal rules.text +67 -0
- data/test/MarkdownTest_1.0.3/Tests/Inline HTML (Advanced).html +15 -0
- data/test/MarkdownTest_1.0.3/Tests/Inline HTML (Advanced).text +15 -0
- data/test/MarkdownTest_1.0.3/Tests/Inline HTML (Simple).html +72 -0
- data/test/MarkdownTest_1.0.3/Tests/Inline HTML (Simple).text +69 -0
- data/test/MarkdownTest_1.0.3/Tests/Inline HTML comments.html +13 -0
- data/test/MarkdownTest_1.0.3/Tests/Inline HTML comments.text +13 -0
- data/test/MarkdownTest_1.0.3/Tests/Links, inline style.html +11 -0
- data/test/MarkdownTest_1.0.3/Tests/Links, inline style.text +12 -0
- data/test/MarkdownTest_1.0.3/Tests/Links, reference style.html +52 -0
- data/test/MarkdownTest_1.0.3/Tests/Links, reference style.text +71 -0
- data/test/MarkdownTest_1.0.3/Tests/Links, shortcut references.html +9 -0
- data/test/MarkdownTest_1.0.3/Tests/Links, shortcut references.text +20 -0
- data/test/MarkdownTest_1.0.3/Tests/Literal quotes in titles.html +3 -0
- data/test/MarkdownTest_1.0.3/Tests/Literal quotes in titles.text +7 -0
- data/test/MarkdownTest_1.0.3/Tests/Markdown Documentation - Basics.html +314 -0
- data/test/MarkdownTest_1.0.3/Tests/Markdown Documentation - Basics.text +306 -0
- data/test/MarkdownTest_1.0.3/Tests/Markdown Documentation - Syntax.html +942 -0
- data/test/MarkdownTest_1.0.3/Tests/Markdown Documentation - Syntax.text +888 -0
- data/test/MarkdownTest_1.0.3/Tests/Nested blockquotes.html +9 -0
- data/test/MarkdownTest_1.0.3/Tests/Nested blockquotes.text +5 -0
- data/test/MarkdownTest_1.0.3/Tests/Ordered and unordered lists.html +148 -0
- data/test/MarkdownTest_1.0.3/Tests/Ordered and unordered lists.text +131 -0
- data/test/MarkdownTest_1.0.3/Tests/Strong and em together.html +7 -0
- data/test/MarkdownTest_1.0.3/Tests/Strong and em together.text +7 -0
- data/test/MarkdownTest_1.0.3/Tests/Tabs.html +25 -0
- data/test/MarkdownTest_1.0.3/Tests/Tabs.text +21 -0
- data/test/MarkdownTest_1.0.3/Tests/Tidyness.html +8 -0
- data/test/MarkdownTest_1.0.3/Tests/Tidyness.text +5 -0
- data/test/MarkdownTest_1.0/MarkdownTest.pl +162 -0
- data/test/MarkdownTest_1.0/Tests/Amps and angle encoding.html +17 -0
- data/test/MarkdownTest_1.0/Tests/Amps and angle encoding.text +21 -0
- data/test/MarkdownTest_1.0/Tests/Auto links.html +18 -0
- data/test/MarkdownTest_1.0/Tests/Auto links.text +13 -0
- data/test/MarkdownTest_1.0/Tests/Backslash escapes.html +102 -0
- data/test/MarkdownTest_1.0/Tests/Backslash escapes.text +104 -0
- data/test/MarkdownTest_1.0/Tests/Blockquotes with code blocks.html +15 -0
- data/test/MarkdownTest_1.0/Tests/Blockquotes with code blocks.text +11 -0
- data/test/MarkdownTest_1.0/Tests/Hard-wrapped paragraphs with list-like lines.html +8 -0
- data/test/MarkdownTest_1.0/Tests/Hard-wrapped paragraphs with list-like lines.text +8 -0
- data/test/MarkdownTest_1.0/Tests/Horizontal rules.html +71 -0
- data/test/MarkdownTest_1.0/Tests/Horizontal rules.text +67 -0
- data/test/MarkdownTest_1.0/Tests/Inline HTML (Advanced).html +14 -0
- data/test/MarkdownTest_1.0/Tests/Inline HTML (Advanced).text +14 -0
- data/test/MarkdownTest_1.0/Tests/Inline HTML (Simple).html +72 -0
- data/test/MarkdownTest_1.0/Tests/Inline HTML (Simple).text +69 -0
- data/test/MarkdownTest_1.0/Tests/Inline HTML comments.html +13 -0
- data/test/MarkdownTest_1.0/Tests/Inline HTML comments.text +13 -0
- data/test/MarkdownTest_1.0/Tests/Links, inline style.html +9 -0
- data/test/MarkdownTest_1.0/Tests/Links, inline style.text +9 -0
- data/test/MarkdownTest_1.0/Tests/Links, reference style.html +18 -0
- data/test/MarkdownTest_1.0/Tests/Links, reference style.text +31 -0
- data/test/MarkdownTest_1.0/Tests/Literal quotes in titles.html +3 -0
- data/test/MarkdownTest_1.0/Tests/Literal quotes in titles.text +7 -0
- data/test/MarkdownTest_1.0/Tests/Markdown Documentation - Basics.html +314 -0
- data/test/MarkdownTest_1.0/Tests/Markdown Documentation - Basics.text +306 -0
- data/test/MarkdownTest_1.0/Tests/Markdown Documentation - Syntax.html +942 -0
- data/test/MarkdownTest_1.0/Tests/Markdown Documentation - Syntax.text +888 -0
- data/test/MarkdownTest_1.0/Tests/Nested blockquotes.html +9 -0
- data/test/MarkdownTest_1.0/Tests/Nested blockquotes.text +5 -0
- data/test/MarkdownTest_1.0/Tests/Ordered and unordered lists.html +137 -0
- data/test/MarkdownTest_1.0/Tests/Ordered and unordered lists.text +122 -0
- data/test/MarkdownTest_1.0/Tests/Strong and em together.html +7 -0
- data/test/MarkdownTest_1.0/Tests/Strong and em together.text +7 -0
- data/test/MarkdownTest_1.0/Tests/Tabs.html +25 -0
- data/test/MarkdownTest_1.0/Tests/Tabs.text +21 -0
- data/test/MarkdownTest_1.0/Tests/Tidyness.html +8 -0
- data/test/MarkdownTest_1.0/Tests/Tidyness.text +5 -0
- data/test/fixtures/benchmark.md +232 -0
- data/test/greenmat_bin_test.rb +80 -0
- metadata +186 -1
@@ -0,0 +1,67 @@
|
|
1
|
+
Dashes:
|
2
|
+
|
3
|
+
---
|
4
|
+
|
5
|
+
---
|
6
|
+
|
7
|
+
---
|
8
|
+
|
9
|
+
---
|
10
|
+
|
11
|
+
---
|
12
|
+
|
13
|
+
- - -
|
14
|
+
|
15
|
+
- - -
|
16
|
+
|
17
|
+
- - -
|
18
|
+
|
19
|
+
- - -
|
20
|
+
|
21
|
+
- - -
|
22
|
+
|
23
|
+
|
24
|
+
Asterisks:
|
25
|
+
|
26
|
+
***
|
27
|
+
|
28
|
+
***
|
29
|
+
|
30
|
+
***
|
31
|
+
|
32
|
+
***
|
33
|
+
|
34
|
+
***
|
35
|
+
|
36
|
+
* * *
|
37
|
+
|
38
|
+
* * *
|
39
|
+
|
40
|
+
* * *
|
41
|
+
|
42
|
+
* * *
|
43
|
+
|
44
|
+
* * *
|
45
|
+
|
46
|
+
|
47
|
+
Underscores:
|
48
|
+
|
49
|
+
___
|
50
|
+
|
51
|
+
___
|
52
|
+
|
53
|
+
___
|
54
|
+
|
55
|
+
___
|
56
|
+
|
57
|
+
___
|
58
|
+
|
59
|
+
_ _ _
|
60
|
+
|
61
|
+
_ _ _
|
62
|
+
|
63
|
+
_ _ _
|
64
|
+
|
65
|
+
_ _ _
|
66
|
+
|
67
|
+
_ _ _
|
@@ -0,0 +1,72 @@
|
|
1
|
+
<p>Here's a simple block:</p>
|
2
|
+
|
3
|
+
<div>
|
4
|
+
foo
|
5
|
+
</div>
|
6
|
+
|
7
|
+
<p>This should be a code block, though:</p>
|
8
|
+
|
9
|
+
<pre><code><div>
|
10
|
+
foo
|
11
|
+
</div>
|
12
|
+
</code></pre>
|
13
|
+
|
14
|
+
<p>As should this:</p>
|
15
|
+
|
16
|
+
<pre><code><div>foo</div>
|
17
|
+
</code></pre>
|
18
|
+
|
19
|
+
<p>Now, nested:</p>
|
20
|
+
|
21
|
+
<div>
|
22
|
+
<div>
|
23
|
+
<div>
|
24
|
+
foo
|
25
|
+
</div>
|
26
|
+
</div>
|
27
|
+
</div>
|
28
|
+
|
29
|
+
<p>This should just be an HTML comment:</p>
|
30
|
+
|
31
|
+
<!-- Comment -->
|
32
|
+
|
33
|
+
<p>Multiline:</p>
|
34
|
+
|
35
|
+
<!--
|
36
|
+
Blah
|
37
|
+
Blah
|
38
|
+
-->
|
39
|
+
|
40
|
+
<p>Code block:</p>
|
41
|
+
|
42
|
+
<pre><code><!-- Comment -->
|
43
|
+
</code></pre>
|
44
|
+
|
45
|
+
<p>Just plain comment, with trailing spaces on the line:</p>
|
46
|
+
|
47
|
+
<!-- foo -->
|
48
|
+
|
49
|
+
<p>Code:</p>
|
50
|
+
|
51
|
+
<pre><code><hr />
|
52
|
+
</code></pre>
|
53
|
+
|
54
|
+
<p>Hr's:</p>
|
55
|
+
|
56
|
+
<hr>
|
57
|
+
|
58
|
+
<hr/>
|
59
|
+
|
60
|
+
<hr />
|
61
|
+
|
62
|
+
<hr>
|
63
|
+
|
64
|
+
<hr/>
|
65
|
+
|
66
|
+
<hr />
|
67
|
+
|
68
|
+
<hr class="foo" id="bar" />
|
69
|
+
|
70
|
+
<hr class="foo" id="bar"/>
|
71
|
+
|
72
|
+
<hr class="foo" id="bar" >
|
@@ -0,0 +1,69 @@
|
|
1
|
+
Here's a simple block:
|
2
|
+
|
3
|
+
<div>
|
4
|
+
foo
|
5
|
+
</div>
|
6
|
+
|
7
|
+
This should be a code block, though:
|
8
|
+
|
9
|
+
<div>
|
10
|
+
foo
|
11
|
+
</div>
|
12
|
+
|
13
|
+
As should this:
|
14
|
+
|
15
|
+
<div>foo</div>
|
16
|
+
|
17
|
+
Now, nested:
|
18
|
+
|
19
|
+
<div>
|
20
|
+
<div>
|
21
|
+
<div>
|
22
|
+
foo
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
|
27
|
+
This should just be an HTML comment:
|
28
|
+
|
29
|
+
<!-- Comment -->
|
30
|
+
|
31
|
+
Multiline:
|
32
|
+
|
33
|
+
<!--
|
34
|
+
Blah
|
35
|
+
Blah
|
36
|
+
-->
|
37
|
+
|
38
|
+
Code block:
|
39
|
+
|
40
|
+
<!-- Comment -->
|
41
|
+
|
42
|
+
Just plain comment, with trailing spaces on the line:
|
43
|
+
|
44
|
+
<!-- foo -->
|
45
|
+
|
46
|
+
Code:
|
47
|
+
|
48
|
+
<hr />
|
49
|
+
|
50
|
+
Hr's:
|
51
|
+
|
52
|
+
<hr>
|
53
|
+
|
54
|
+
<hr/>
|
55
|
+
|
56
|
+
<hr />
|
57
|
+
|
58
|
+
<hr>
|
59
|
+
|
60
|
+
<hr/>
|
61
|
+
|
62
|
+
<hr />
|
63
|
+
|
64
|
+
<hr class="foo" id="bar" />
|
65
|
+
|
66
|
+
<hr class="foo" id="bar"/>
|
67
|
+
|
68
|
+
<hr class="foo" id="bar" >
|
69
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<p>Just a <a href="/url/">URL</a>.</p>
|
2
|
+
|
3
|
+
<p><a href="/url/" title="title">URL and title</a>.</p>
|
4
|
+
|
5
|
+
<p><a href="/url/" title="title preceded by two spaces">URL and title</a>.</p>
|
6
|
+
|
7
|
+
<p><a href="/url/" title="title preceded by a tab">URL and title</a>.</p>
|
8
|
+
|
9
|
+
<p><a href="/url/" title="title has spaces afterward">URL and title</a>.</p>
|
10
|
+
|
11
|
+
<p><a href="">Empty</a>.</p>
|
@@ -0,0 +1,52 @@
|
|
1
|
+
<p>Foo <a href="/url/" title="Title">bar</a>.</p>
|
2
|
+
|
3
|
+
<p>Foo <a href="/url/" title="Title">bar</a>.</p>
|
4
|
+
|
5
|
+
<p>Foo <a href="/url/" title="Title">bar</a>.</p>
|
6
|
+
|
7
|
+
<p>With <a href="/url/">embedded [brackets]</a>.</p>
|
8
|
+
|
9
|
+
<p>Indented <a href="/url">once</a>.</p>
|
10
|
+
|
11
|
+
<p>Indented <a href="/url">twice</a>.</p>
|
12
|
+
|
13
|
+
<p>Indented <a href="/url">thrice</a>.</p>
|
14
|
+
|
15
|
+
<p>Indented [four][] times.</p>
|
16
|
+
|
17
|
+
<pre><code>[four]: /url
|
18
|
+
</code></pre>
|
19
|
+
|
20
|
+
<hr />
|
21
|
+
|
22
|
+
<p><a href="foo">this</a> should work</p>
|
23
|
+
|
24
|
+
<p>So should <a href="foo">this</a>.</p>
|
25
|
+
|
26
|
+
<p>And <a href="foo">this</a>.</p>
|
27
|
+
|
28
|
+
<p>And <a href="foo">this</a>.</p>
|
29
|
+
|
30
|
+
<p>And <a href="foo">this</a>.</p>
|
31
|
+
|
32
|
+
<p>But not [that] [].</p>
|
33
|
+
|
34
|
+
<p>Nor [that][].</p>
|
35
|
+
|
36
|
+
<p>Nor [that].</p>
|
37
|
+
|
38
|
+
<p>[Something in brackets like <a href="foo">this</a> should work]</p>
|
39
|
+
|
40
|
+
<p>[Same with <a href="foo">this</a>.]</p>
|
41
|
+
|
42
|
+
<p>In this case, <a href="/somethingelse/">this</a> points to something else.</p>
|
43
|
+
|
44
|
+
<p>Backslashing should suppress [this] and [this].</p>
|
45
|
+
|
46
|
+
<hr />
|
47
|
+
|
48
|
+
<p>Here's one where the <a href="/url/">link
|
49
|
+
breaks</a> across lines.</p>
|
50
|
+
|
51
|
+
<p>Here's another where the <a href="/url/">link
|
52
|
+
breaks</a> across lines, but with a line-ending space.</p>
|
@@ -0,0 +1,71 @@
|
|
1
|
+
Foo [bar] [1].
|
2
|
+
|
3
|
+
Foo [bar][1].
|
4
|
+
|
5
|
+
Foo [bar]
|
6
|
+
[1].
|
7
|
+
|
8
|
+
[1]: /url/ "Title"
|
9
|
+
|
10
|
+
|
11
|
+
With [embedded [brackets]] [b].
|
12
|
+
|
13
|
+
|
14
|
+
Indented [once][].
|
15
|
+
|
16
|
+
Indented [twice][].
|
17
|
+
|
18
|
+
Indented [thrice][].
|
19
|
+
|
20
|
+
Indented [four][] times.
|
21
|
+
|
22
|
+
[once]: /url
|
23
|
+
|
24
|
+
[twice]: /url
|
25
|
+
|
26
|
+
[thrice]: /url
|
27
|
+
|
28
|
+
[four]: /url
|
29
|
+
|
30
|
+
|
31
|
+
[b]: /url/
|
32
|
+
|
33
|
+
* * *
|
34
|
+
|
35
|
+
[this] [this] should work
|
36
|
+
|
37
|
+
So should [this][this].
|
38
|
+
|
39
|
+
And [this] [].
|
40
|
+
|
41
|
+
And [this][].
|
42
|
+
|
43
|
+
And [this].
|
44
|
+
|
45
|
+
But not [that] [].
|
46
|
+
|
47
|
+
Nor [that][].
|
48
|
+
|
49
|
+
Nor [that].
|
50
|
+
|
51
|
+
[Something in brackets like [this][] should work]
|
52
|
+
|
53
|
+
[Same with [this].]
|
54
|
+
|
55
|
+
In this case, [this](/somethingelse/) points to something else.
|
56
|
+
|
57
|
+
Backslashing should suppress \[this] and [this\].
|
58
|
+
|
59
|
+
[this]: foo
|
60
|
+
|
61
|
+
|
62
|
+
* * *
|
63
|
+
|
64
|
+
Here's one where the [link
|
65
|
+
breaks] across lines.
|
66
|
+
|
67
|
+
Here's another where the [link
|
68
|
+
breaks] across lines, but with a line-ending space.
|
69
|
+
|
70
|
+
|
71
|
+
[link breaks]: /url/
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<p>This is the <a href="/simple">simple case</a>.</p>
|
2
|
+
|
3
|
+
<p>This one has a <a href="/foo">line
|
4
|
+
break</a>.</p>
|
5
|
+
|
6
|
+
<p>This one has a <a href="/foo">line
|
7
|
+
break</a> with a line-ending space.</p>
|
8
|
+
|
9
|
+
<p><a href="/that">this</a> and the <a href="/other">other</a></p>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
This is the [simple case].
|
2
|
+
|
3
|
+
[simple case]: /simple
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
This one has a [line
|
8
|
+
break].
|
9
|
+
|
10
|
+
This one has a [line
|
11
|
+
break] with a line-ending space.
|
12
|
+
|
13
|
+
[line break]: /foo
|
14
|
+
|
15
|
+
|
16
|
+
[this] [that] and the [other]
|
17
|
+
|
18
|
+
[this]: /this
|
19
|
+
[that]: /that
|
20
|
+
[other]: /other
|