Module: Openapi3Parser::Markdown

Defined in:
lib/openapi3_parser/markdown.rb

Overview

Wrapper around a gem to render markdown, used a single place for options and handling the gem

Class Method Summary collapse

Class Method Details

.to_html(text) ⇒ String

Parameters:

  • text (String)

Returns:

  • (String)

11
12
13
# File 'lib/openapi3_parser/markdown.rb', line 11

def self.to_html(text)
  CommonMarker.render_doc(text).to_html
end