Skip to content

Turn markdown documents into easily parseable format

Notifications You must be signed in to change notification settings

impactahead/markdownlyze

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Markdownlyze

Turn markdown documents into easily parseable format

Getting started

Install the library:

gem install markdownlyze

Usage

Parse markdown:

markdown = <<~CODE
  # Hello world
  
  This is something super exceptional!
  
  * First thing
  * Second thing
  
  That is it!
CODE

Markdownlyze.parse(markdown) # => [
#   {:element=>:h1, :value=>"Hello world"},
#   {:element=>:blank_line, :value=>nil},
#   {:element=>:paragraph, :value=>"This is something super exceptional!"},
#   {:element=>:blank_line, :value=>nil},
#   {:element=>:ul, :value=>["First thing", "Second thing"]},
#   {:element=>:blank_line, :value=>nil},
#   {:element=>:paragraph, :value=>"That is it!"}
# ]

About

Turn markdown documents into easily parseable format

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages