Top Level Namespace

Defined Under Namespace

Modules: CMark, CommonMarker

Constant Summary collapse

LIBDIR =
RbConfig::CONFIG['libdir']
INCLUDEDIR =
RbConfig::CONFIG['includedir']
ROOT_TMP =
File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'tmp'))
CMARK_DIR =
File.expand_path(File.join(File.dirname(__FILE__), 'cmark'))
CMARK_BUILD_DIR =
File.join(CMARK_DIR, 'build')
HEADER_DIRS =
[INCLUDEDIR]
LIB_DIRS =
[LIBDIR, "#{CMARK_BUILD_DIR}/src"]

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