lib/markdown2confluence/convertor/confluence.rb in markdown2confluence-0.0.1c vs lib/markdown2confluence/convertor/confluence.rb in markdown2confluence-0.0.1d
- old
+ new
@@ -112,11 +112,15 @@
def convert_dt(el, indent)
inner(el, indent)
end
def convert_html_element(el, indent)
- inner(el, indent)
+ markup=case el.value
+ when "iframe" then "{iframe:src=#{el.attr["src"]}}"
+ when "pre" then "{{#{inner(el,indent)}}}"
+ else inner(el, indent)
+ end
end
def convert_xml_comment(el, indent)
""
end
@@ -194,10 +198,10 @@
def convert_typographic_sym(el, indent)
inner(el,indent)
end
def convert_smart_quote(el, indent)
- inner(el,indent)
+ "'"
end
def convert_math(el, indent)
inner(el,indent)
end