typedown 0.0.10 → 0.0.11
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/VERSION +1 -1
- data/lib/typedown/document.rb +1 -1
- data/lib/typedown/section.rb +2 -0
- data/test/data/example.tpd +2 -1
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.11
|
data/lib/typedown/document.rb
CHANGED
@@ -39,7 +39,7 @@ module Typedown
|
|
39
39
|
text.gsub!(/\s*!x-!$/, "**")
|
40
40
|
|
41
41
|
# Textile links to markdown links
|
42
|
-
text.gsub!(/\"(
|
42
|
+
text.gsub!(/\"([^\"]+)"\:(\S+[\w\d\/])/, "[\\1](\\2)")
|
43
43
|
|
44
44
|
# Typedown image tag
|
45
45
|
text.gsub!(/!\[(.+)\]\((.+)\)/, "<div class='image'><img src='\\2' /><div class='caption'>\\1</div></div>")
|
data/lib/typedown/section.rb
CHANGED
data/test/data/example.tpd
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: typedown
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 11
|
10
|
+
version: 0.0.11
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- wrimle
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-09-
|
18
|
+
date: 2010-09-23 00:00:00 +02:00
|
19
19
|
default_executable: typedown
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|