maruku 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
data/docs/changelog.html
CHANGED
@@ -380,4 +380,4 @@ Maruku (to_latex): parsing 0.49 sec + rendering 0.25 sec = 0.73 sec</code></pr
|
|
380
380
|
<p>Support for images in PDF.</p>
|
381
381
|
</li>
|
382
382
|
</ul>
|
383
|
-
<div class='maruku_signature'><hr /><span style='font-size: small; font-style: italic'>Created by <a href='http://maruku.rubyforge.org' title='Maruku: a Markdown-superset interpreter for Ruby'>Maruku</a> at
|
383
|
+
<div class='maruku_signature'><hr /><span style='font-size: small; font-style: italic'>Created by <a href='http://maruku.rubyforge.org' title='Maruku: a Markdown-superset interpreter for Ruby'>Maruku</a> at 14:05 on Wednesday, January 24th, 2007.</span></div></body></html>
|
@@ -53,7 +53,6 @@ class LineSource
|
|
53
53
|
end
|
54
54
|
|
55
55
|
def describe
|
56
|
-
#s = "At line ##{@lines_index} of #{@lines.size}:\n"
|
57
56
|
s = "At line #{original_line_number(@lines_index)}\n"
|
58
57
|
|
59
58
|
context = 3 # lines
|
@@ -63,8 +62,8 @@ class LineSource
|
|
63
62
|
for i in from..to
|
64
63
|
prefix = (i == @lines_index) ? '--> ' : ' ';
|
65
64
|
l = @lines[i]
|
66
|
-
s += "%10s %4s
|
67
|
-
[@lines[i].md_type.to_s, prefix]
|
65
|
+
s += "%10s %4s|%s" %
|
66
|
+
[@lines[i].md_type.to_s, prefix, l]
|
68
67
|
|
69
68
|
s += "|\n"
|
70
69
|
end
|
@@ -631,7 +631,8 @@ module MaRuKu; module In; module Markdown; module SpanLevelParser
|
|
631
631
|
end
|
632
632
|
con.push_element md_image(alt_text, ref_id)
|
633
633
|
else # no stuff
|
634
|
-
|
634
|
+
ref_id = alt_text.to_s.downcase.gsub(' ','_')
|
635
|
+
con.push_element md_image(alt_text, ref_id)
|
635
636
|
end
|
636
637
|
end # read link
|
637
638
|
|
data/lib/maruku/version.rb
CHANGED
data/tests/unittest/email.md
CHANGED
@@ -33,9 +33,9 @@ This is an email address:
|
|
33
33
|
|
34
34
|
|
35
35
|
*** Output of Markdown.pl ***
|
36
|
-
<p>This is an email address: <a href="m
|
36
|
+
<p>This is an email address: <a href="mailto:andrea@invalid.it">andrea@invalid.it</a></p>
|
37
37
|
|
38
38
|
*** Output of Markdown.pl (parsed) ***
|
39
|
-
<p>This is an email address: <a href='&#x6D
|
39
|
+
<p>This is an email address: <a href='&#x6D;a&#105;&#x6C;&#x74;&#111;:&#97;&#x6E;&#x64;&#x72;&#x65;&#x61;&#64;&#105;&#x6E;&#118;&#x61;&#x6C;&#x69;&#100;&#x2E;&#105;&#x74;'>andrea@invalid.it</a
|
40
40
|
></p
|
41
41
|
>
|
data/tests/unittest/images2.md
CHANGED
@@ -12,14 +12,14 @@ This is an ![image].
|
|
12
12
|
*** Output of inspect ***
|
13
13
|
md_el(:document,[
|
14
14
|
md_par(["This is an ", md_image(["image"], "image"), "."]),
|
15
|
-
md_par(["This is an ."]),
|
15
|
+
md_par(["This is an ", md_image(["image"], "image"), "."]),
|
16
16
|
md_ref_def("image", "image.jpg", {:title=>nil})
|
17
17
|
],{},[])
|
18
18
|
*** Output of to_html ***
|
19
19
|
|
20
20
|
<p>This is an <img src='image.jpg' alt='' />.</p>
|
21
21
|
|
22
|
-
<p>This is an
|
22
|
+
<p>This is an <img src='image.jpg' alt='' />.</p>
|
23
23
|
|
24
24
|
*** Output of to_latex ***
|
25
25
|
This is an .
|
@@ -30,11 +30,11 @@ This is an .
|
|
30
30
|
*** Output of to_md ***
|
31
31
|
This is an image.
|
32
32
|
|
33
|
-
This is an .
|
33
|
+
This is an image.
|
34
34
|
|
35
35
|
|
36
36
|
*** Output of to_s ***
|
37
|
-
This is an image.This is an .
|
37
|
+
This is an image.This is an image.
|
38
38
|
*** EOF ***
|
39
39
|
|
40
40
|
|
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>
|