/mquve

WIP: Pure Ruby parser of CommonMark, A strongly defined, highly compatible specification of Markdown

Primary LanguageRubyMIT LicenseMIT

Mquve

Pure Ruby parser of CommonMark, A strongly defined, highly compatible specification of Markdown.

Installation

WIP

Usage

WIP

Progress

Ref. https://spec.commonmark.org/0.31.2/spec.json

  • Tabs: 11 examples
  • Backslash escapes: 13 examples
  • Precedence: 1 examples
  • Thematic breaks: 19 examples
  • ATX headings: 18 examples
  • Setext headings: 27 examples
  • Indented code blocks: 12 examples
  • Fenced code blocks: 29 examples
  • HTML blocks: 44 examples
  • Link reference definitions: 27 examples
  • Paragraphs: 8 examples
  • Blank lines: 1 examples
  • Block quotes: 25 examples
  • List items: 48 examples
  • Lists: 26 examples
  • Inlines: 1 examples
  • Code spans: 22 examples
  • Emphasis and strong emphasis: 132 examples
  • Links: 90 examples
  • Images: 22 examples
  • Autolinks: 19 examples
  • Raw HTML: 20 examples
  • Hard line breaks: 15 examples
  • Soft line breaks: 2 examples
  • Textual content: 3 examples

Development

After checking out the repo, run bin/setup to install dependencies. Then, run bin/test to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/kawakamimoeki/mquve. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the mquve project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.