Top Level Namespace

Defined Under Namespace

Modules: CMark, CommonMarker

Constant Summary collapse

NODE_TYPES =
i(none document blockquote list list_item
code_block html paragraph
header hrule text softbreak
linebreak code inline_html
emph strong link image)
LIST_TYPES =
i(no_list bullet_list ordered_list)
NONE_TYPE =
'NONE'
CMARK_DIR =
File.expand_path(File.join(File.dirname(__FILE__), 'cmark'))
CMARK_BUILD_DIR =
File.join(CMARK_DIR, 'build')

Instance Method Summary collapse

Instance Method Details

#markdown_to_html(s) ⇒ Object



10
11
12
13
# File 'ext/commonmarker/cmark/wrappers/wrapper.rb', line 10

def markdown_to_html(s)
  len = s.bytesize
  CMark::cmark_markdown_to_html(s, len, 0)
end