Module: Commonmarker::Merge::Backend

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

Overview

Note:

This backend only parses Markdown source code

Commonmarker backend using the Commonmarker gem (comrak Rust parser)

This backend wraps Commonmarker, a Ruby gem that provides bindings to comrak, a fast CommonMark-compliant Markdown parser written in Rust.

Examples:

Basic usage

parser = TreeHaver::Parser.new
parser.language = Commonmarker::Merge::Backend::Language.markdown
tree = parser.parse(markdown_source)
root = tree.root_node
puts root.type  # => "document"

See Also:

Defined Under Namespace

Classes: Language, Node, Parser