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 CHANGED
@@ -1 +1 @@
1
- 0.0.10
1
+ 0.0.11
@@ -39,7 +39,7 @@ module Typedown
39
39
  text.gsub!(/\s*!x-!$/, "**")
40
40
 
41
41
  # Textile links to markdown links
42
- text.gsub!(/\"(.+)"\:(\S+[\w\d\/])/, "[\\1](\\2)")
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>")
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
 
2
3
  module Typedown
3
4
  class Section < String
@@ -29,6 +30,7 @@ module Typedown
29
30
 
30
31
  def doc
31
32
  d = Document.new "! #{title}\n\n"
33
+ raise d.encoding.name + "/" + body.validencoding
32
34
  d << body.gsub(/^(!+ )/, '!\0')
33
35
  d
34
36
  end
@@ -21,7 +21,8 @@ More body copy. Standard markdown /italic/ and //bold//.
21
21
  And body copy again.
22
22
 
23
23
 
24
- "Textile link":http://www.vg.no.
24
+ "Textile link":http://www.vg.no og "en til
25
+ på samme linje":http://www.db.no.
25
26
 
26
27
 
27
28
  !"Caption":http://www.vg.no/image.jpg
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: 11
4
+ hash: 9
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 10
10
- version: 0.0.10
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-12 00:00:00 +02:00
18
+ date: 2010-09-23 00:00:00 +02:00
19
19
  default_executable: typedown
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency