The particular flavors we want to support in Markdown are:
GitHub Flavored Markdown (GFM) (RFC 7764, 3.2)
CommonMark (RFC 7764, 3.5)
kramdown (RFC 7764, 3.6)
This task is to implement a Markdown parser input to create in a Coradoc::Document that corresponds to the elements in these Markdown flavors.
The parser is to be written using the Parslet gem.
This is sample code:
markdown = IO.read("my_text.md")
# =>
# "# My Title
# my text ..."
doc = Coradoc::Markdown.parse(markdown)
# => Coradoc::Document
doc.to_adoc
# =>
# "= My Title
# my text..."
Markdown is a lightweight rich-text markup language defined with these syntaxes:
The particular flavors we want to support in Markdown are:
This task is to implement a Markdown parser input to create in a Coradoc::Document that corresponds to the elements in these Markdown flavors.
The parser is to be written using the Parslet gem.
This is sample code: