def markdown_to_html( content )    
    ## note: set to gfm (github-flavored markdown) by default
    ##   see http://kramdown.gettalong.org/parser/gfm.html
    kramdown_config = {
      'input'     => 'GFM',
      'hard_wrap' => false
    }

    puts "  Converting markdown-text (#{content.length} bytes) to HTML using kramdown library with #{kramdown_config.inspect}..."
    
    Kramdown::Document.new( content, kramdown_config ).to_html
  end
def markdown_to_html( content )    
    ## note: set to gfm (github-flavored markdown) by default
    ##   see http://kramdown.gettalong.org/parser/gfm.html
    kramdown_config = {
      'input'     => 'GFM',
      'hard_wrap' => false
    }

    puts "  Converting markdown-text (#{content.length} bytes) to HTML using kramdown library with #{kramdown_config.inspect}..."
    
    Kramdown::Document.new( content, kramdown_config ).to_html
  end
note: for now keep it simple use just kramdown