maruku 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/docs/changelog.html +65 -6
- data/docs/changelog.md +31 -1
- data/docs/entity_test.html +17 -17
- data/docs/exd.html +46 -8
- data/docs/index.html +58 -31
- data/docs/markdown_syntax.html +170 -6
- data/docs/maruku.html +58 -31
- data/docs/maruku.md +9 -16
- data/docs/math.md +76 -25
- data/docs/proposal.html +65 -9
- data/lib/maruku/ext/diagrams/layout.rb +405 -2
- data/lib/maruku/ext/diagrams/to_latex.rb +0 -205
- data/lib/maruku/ext/math/to_html.rb +0 -8
- data/lib/maruku/input/charsource.rb +5 -4
- data/lib/maruku/input/parse_doc.rb +1 -0
- data/lib/maruku/input/parse_span_better.rb +7 -2
- data/lib/maruku/output/to_html.rb +50 -7
- data/lib/maruku/output/to_latex.rb +6 -2
- data/lib/maruku/output/to_latex_entities.rb +3 -3
- data/lib/maruku/version.rb +1 -1
- data/tests/unittest/attributes/attributes.md +8 -49
- data/tests/unittest/blanks_in_code.md +6 -0
- data/tests/unittest/code.md +2 -0
- data/tests/unittest/code2.md +3 -1
- data/tests/unittest/code3.md +8 -0
- data/tests/unittest/email.md +2 -2
- data/tests/unittest/entities.md +2 -0
- data/tests/unittest/ie.md +112 -0
- data/tests/unittest/images.md +2 -2
- data/tests/unittest/images2.md +55 -0
- data/tests/unittest/inline_html.md +4 -0
- data/tests/unittest/links.md +1 -1
- data/tests/unittest/list3.md +3 -1
- data/tests/unittest/misc_sw.md +3 -1
- data/tests/unittest/smartypants.md +8 -0
- data/tests/unittest/syntax_hl.md +7 -1
- data/tests/unittest/test.md +2 -0
- metadata +4 -3
- data/docs/a.md +0 -4
data/tests/unittest/images.md
CHANGED
@@ -70,9 +70,9 @@ Please mouseover to see the title:
|
|
70
70
|
|
71
71
|
Please mouseover to see the title:
|
72
72
|
|
73
|
-
I'll say it one more time: this page does not use
|
73
|
+
I'll say it one more time: this page does not use
|
74
74
|
|
75
|
-
This is double size:
|
75
|
+
This is double size:
|
76
76
|
|
77
77
|
|
78
78
|
*** Output of to_md ***
|
@@ -0,0 +1,55 @@
|
|
1
|
+
Write a comment here
|
2
|
+
*** Parameters: ***
|
3
|
+
{} # params
|
4
|
+
*** Markdown input: ***
|
5
|
+
|
6
|
+
This is an ![image][].
|
7
|
+
|
8
|
+
This is an ![image].
|
9
|
+
|
10
|
+
[image]: image.jpg
|
11
|
+
|
12
|
+
*** Output of inspect ***
|
13
|
+
md_el(:document,[
|
14
|
+
md_par(["This is an ", md_image(["image"], "image"), "."]),
|
15
|
+
md_par(["This is an ."]),
|
16
|
+
md_ref_def("image", "image.jpg", {:title=>nil})
|
17
|
+
],{},[])
|
18
|
+
*** Output of to_html ***
|
19
|
+
|
20
|
+
<p>This is an <img src='image.jpg' alt='' />.</p>
|
21
|
+
|
22
|
+
<p>This is an .</p>
|
23
|
+
|
24
|
+
*** Output of to_latex ***
|
25
|
+
This is an .
|
26
|
+
|
27
|
+
This is an .
|
28
|
+
|
29
|
+
|
30
|
+
*** Output of to_md ***
|
31
|
+
This is an image.
|
32
|
+
|
33
|
+
This is an .
|
34
|
+
|
35
|
+
|
36
|
+
*** Output of to_s ***
|
37
|
+
This is an image.This is an .
|
38
|
+
*** EOF ***
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
OK!
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
*** Output of Markdown.pl ***
|
47
|
+
<p>This is an <img src="image.jpg" alt="image" />.</p>
|
48
|
+
|
49
|
+
<p>This is an ![image].</p>
|
50
|
+
|
51
|
+
*** Output of Markdown.pl (parsed) ***
|
52
|
+
<p>This is an <img src='image.jpg' alt='image'/
|
53
|
+
>.</p
|
54
|
+
><p>This is an ![image].</p
|
55
|
+
>
|
@@ -76,13 +76,17 @@ md_el(:document,[
|
|
76
76
|
*** Output of to_html ***
|
77
77
|
|
78
78
|
<p>Input:</p>
|
79
|
+
|
79
80
|
<pre><code><em>Emphasis</em>
|
80
81
|
</code></pre>
|
82
|
+
|
81
83
|
<p>Result: <em>Emphasis</em></p>
|
82
84
|
|
83
85
|
<p>Input:</p>
|
86
|
+
|
84
87
|
<pre><code><img src="http://jigsaw.w3.org/css-validator/images/vcss"/>
|
85
88
|
</code></pre>
|
89
|
+
|
86
90
|
<p>Result on span: <img src='http://jigsaw.w3.org/css-validator/images/vcss' /></p>
|
87
91
|
|
88
92
|
<p>Result alone:</p>
|
data/tests/unittest/links.md
CHANGED
@@ -168,7 +168,7 @@ Search on GoogleSearch on GoogleSearch on GoogleSearch on GoogleSearch on Google
|
|
168
168
|
|
169
169
|
<p>Inline with title: <a href="http://google.com "Title"">Google images</a></p>
|
170
170
|
|
171
|
-
<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="m
|
171
|
+
<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>
|
172
172
|
or you might ask bill@google.com.</p>
|
173
173
|
|
174
174
|
<p>If all else fails, ask <a href="http://www.google.com">Google</a></p>
|
data/tests/unittest/list3.md
CHANGED
data/tests/unittest/misc_sw.md
CHANGED
@@ -363,13 +363,15 @@ md_el(:document,[
|
|
363
363
|
|
364
364
|
<li>
|
365
365
|
<p><em>Scripting language</em>: <a href='http://www.ruby-lang.org/'>Ruby</a> is Japanese pragmatism (and has a <a href='http://poignantguide.net/ruby/'>poignant</a> guide). Python, you say? Python is too academic and snob:</p>
|
366
|
+
|
366
367
|
<pre><code>$ python
|
367
368
|
Python 2.4.1 (\#1, Jun 4 2005, 00:54:33)
|
368
369
|
Type "help", "copyright", "credits" or "license" for more information.
|
369
370
|
>>> exit
|
370
371
|
'Use Ctrl-D (i.e. EOF) to exit.'
|
371
372
|
>>> quit
|
372
|
-
'Use Ctrl-D (i.e. EOF) to exit.'</code></pre
|
373
|
+
'Use Ctrl-D (i.e. EOF) to exit.'</code></pre>
|
374
|
+
</li>
|
373
375
|
|
374
376
|
<li>
|
375
377
|
<p><em>Java IDE</em>: <a href='http://www.borland.com/us/products/jbuilder/index.html'>JBuilder</a> is great software and has a free version (IMHO better than Eclipse). Java is not a pain anymore since it gained <a href='http://java.sun.com/j2se/1.5.0/docs/guide/language/generics.html'>generics</a> and got opensourced.</p>
|
@@ -68,13 +68,21 @@ md_el(:document,[
|
|
68
68
|
],{},[])
|
69
69
|
],{},[])
|
70
70
|
*** Output of to_html ***
|
71
|
+
|
71
72
|
<pre><code>'Twas a "test" to 'remember' in the '90s.</code></pre>
|
73
|
+
|
72
74
|
<p>‘Twas a “test” to ‘remember’ in the ’90s.</p>
|
75
|
+
|
73
76
|
<pre><code>It was --- in a sense --- really... interesting.</code></pre>
|
77
|
+
|
74
78
|
<p>It was — in a sense — really… interesting.</p>
|
79
|
+
|
75
80
|
<pre><code>I -- too -- met << some curly quotes >> there or <<here>>No space.</code></pre>
|
81
|
+
|
76
82
|
<p>I – too – met « some curly quotes » there or «here»No space.</p>
|
83
|
+
|
77
84
|
<pre><code>She was 6\"12\'.</code></pre>
|
85
|
+
|
78
86
|
<blockquote>
|
79
87
|
<p>She was 6"12'.</p>
|
80
88
|
</blockquote>
|
data/tests/unittest/syntax_hl.md
CHANGED
@@ -25,12 +25,18 @@ md_el(:document,[
|
|
25
25
|
*** Output of to_html ***
|
26
26
|
|
27
27
|
<p>This is ruby code:</p>
|
28
|
+
|
28
29
|
<pre><code>require 'maruku'
|
29
30
|
|
30
31
|
puts Maruku.new($stdin).to_html
|
31
32
|
</code></pre>
|
33
|
+
|
32
34
|
<p>This is ruby code:</p>
|
33
|
-
|
35
|
+
|
36
|
+
<pre><code class='ruby' lang='ruby'><span class='ident'>require</span> <span class='punct'>'</span><span class='string'>maruku</span><span class='punct'>'</span></code></pre>
|
37
|
+
|
38
|
+
<pre><code>puts Maruku.new($stdin).to_html</code></pre>
|
39
|
+
|
34
40
|
*** Output of to_latex ***
|
35
41
|
This is ruby code:
|
36
42
|
|
data/tests/unittest/test.md
CHANGED
@@ -10,7 +10,9 @@ Write a comment abouth the test here.
|
|
10
10
|
*** Output of inspect ***
|
11
11
|
md_el(:document,[md_el(:code,[],{:raw_code=>" $ python "},[])],{},[])
|
12
12
|
*** Output of to_html ***
|
13
|
+
|
13
14
|
<pre><code> $ python </code></pre>
|
15
|
+
|
14
16
|
*** Output of to_latex ***
|
15
17
|
\begin{verbatim} $ python \end{verbatim}
|
16
18
|
|
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-01-
|
6
|
+
version: 0.5.1
|
7
|
+
date: 2007-01-24
|
8
8
|
summary: A Markdown interpreter in Ruby
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -77,7 +77,6 @@ files:
|
|
77
77
|
- lib/maruku/tests/new_parser.rb
|
78
78
|
- lib/maruku/tests/tests.rb
|
79
79
|
- lib/maruku/usage/example1.rb
|
80
|
-
- docs/a.md
|
81
80
|
- docs/changelog.md
|
82
81
|
- docs/entity_test.md
|
83
82
|
- docs/markdown_syntax.md
|
@@ -140,7 +139,9 @@ files:
|
|
140
139
|
- tests/unittest/footnotes.md
|
141
140
|
- tests/unittest/headers.md
|
142
141
|
- tests/unittest/hrule.md
|
142
|
+
- tests/unittest/ie.md
|
143
143
|
- tests/unittest/images.md
|
144
|
+
- tests/unittest/images2.md
|
144
145
|
- tests/unittest/inline_html.md
|
145
146
|
- tests/unittest/inline_html2.md
|
146
147
|
- tests/unittest/links.md
|
data/docs/a.md
DELETED