Module: Markly::Merge::Backend

Defined in:
lib/markly/merge/backend.rb

Overview

Note:

This backend only parses Markdown source code

Markly backend using the Markly gem (cmark-gfm C library)

This backend wraps Markly, a Ruby gem that provides bindings to
cmark-gfm, GitHub’s fork of the CommonMark C library with extensions.

Examples:

Basic usage

parser = TreeHaver::Parser.new
parser.language = Markly::Merge::Backend::Language.markdown(
  flags: Markly::DEFAULT,
  extensions: [:table, :strikethrough]
)
tree = parser.parse(markdown_source)
root = tree.root_node
puts root.type  # => "document"

See Also:

Defined Under Namespace

Classes: Language, Node, Parser