md.rb
Create and manage multiple markdown documents easily.
Some of the key features are:
- Having a simple syntax and api
- Generate, read, update and delete multiple markdown
- Get json from markdown
Install
gem install mdrb
require 'mdrb'
usage
Create markdown
MD.create("first", "# Hello")
MD.create("first document", "# Hello")
Create multiple markdown
MD.create_many(["first","second"], ["# first","# second"])
MD.create_many(["first document","second document"], ["# first","# second"])
Get json from markdown
MD.create("first", "# first")
puts json = MD.to_json("first")
Update markdown
MD.update(path, content)
MD.update_on(which_line, path, content)
MD.update_many()
Delete markdown
MD.create_many(["first","second"], ["# first", "# second"])
MD.delete("first")
MD.delete_many(["first", "second"])
Read markdown
MD.read()
MD.read_many()
Testing
rspec
license
MIT | ytbryan@hey.com