markdown2confluence 0.0.1c → 0.0.1d

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.
@@ -10,6 +10,7 @@ exit -1
10
10
 
11
11
  begin
12
12
  text=File.read(filename)
13
+
13
14
  s=Kramdown::Document.new(text).to_confluence
14
15
  puts s
15
16
  rescue Exception => ex
@@ -114,7 +114,11 @@ module Kramdown
114
114
  end
115
115
 
116
116
  def convert_html_element(el, indent)
117
- inner(el, indent)
117
+ markup=case el.value
118
+ when "iframe" then "{iframe:src=#{el.attr["src"]}}"
119
+ when "pre" then "{{#{inner(el,indent)}}}"
120
+ else inner(el, indent)
121
+ end
118
122
  end
119
123
 
120
124
  def convert_xml_comment(el, indent)
@@ -196,7 +200,7 @@ module Kramdown
196
200
  end
197
201
 
198
202
  def convert_smart_quote(el, indent)
199
- inner(el,indent)
203
+ "'"
200
204
  end
201
205
 
202
206
  def convert_math(el, indent)
@@ -2,5 +2,5 @@ module Markdown2Confluence
2
2
  end
3
3
 
4
4
  unless defined?(Markdown2Confluence::VERSION)
5
- ::Markdown2Confluence::VERSION = "0.0.1c"
5
+ ::Markdown2Confluence::VERSION = "0.0.1d"
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markdown2confluence
3
3
  version: !ruby/object:Gem::Version
4
- hash: 44
4
+ hash: 45
5
5
  prerelease: 5
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
9
  - 1
10
- - c
11
- version: 0.0.1c
10
+ - d
11
+ version: 0.0.1d
12
12
  platform: ruby
13
13
  authors:
14
14
  - Patrick Debois