Class: Gfm2Confluence
- Inherits:
-
Object
- Object
- Gfm2Confluence
- Defined in:
- lib/gfm2confluence.rb
Defined Under Namespace
Classes: Converter
Class Method Summary collapse
Class Method Details
.convert(text) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/gfm2confluence.rb', line 6 def self.convert(text) markdown = Redcarpet::Markdown.new(Gfm2Confluence::Converter, :autolink => true, :fenced_code_blocks => true, :hard_wrap => true, :strikethrough => true, :superscript => true, :no_intra_emphasis => true) result = markdown.render(text) end |