Markly
A parser and abstract syntax tree for Markdown documents (CommonMark compatible) in Ruby. Originally forked from CommonMarker. It also includes extensions to the CommonMark spec as documented in the GitHub Flavored Markdown spec, such as support for tables, strikethroughs, and autolinking.
Motivation
This code base was originally forked from Commonmarker before they
switched from cmark-gfm
(C) to comrak
(Rust). The original implementation provided access to the abstract syntax
tree (AST), which is useful for building tools on top of Markdown. The Rust implementation does not provide this
functionality, and so this fork was created to continue to provide these (and more) features.
Usage
Please browse the source code index or refer to the guides below.
Getting Started
This guide explains now to install and use Markly.
Abstract Syntax Tree
This guide explains how to use Markly's abstract syntax tree (AST) to parse and manipulate Markdown documents.
Contributing
We welcome contributions to this project.
- Fork it.
- Create your feature branch (
git checkout -b my-new-feature
). - Commit your changes (
git commit -am 'Add some feature'
). - Push to the branch (
git push origin my-new-feature
). - Create new Pull Request.