Project

mdrb

0.0
No commit activity in last 3 years
No release in over 3 years
Create and manage markdown
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 3.9.0

Runtime

~> 0.1.0
 Project Readme

md.rb

Create and manage multiple markdown documents easily.

Some of the key features are:

  1. Having a simple syntax and api
  2. Generate, read, update and delete multiple markdown
  3. Get json from markdown

Install

gem install mdrb
require 'mdrb'

usage

Create markdown

MD.create("first", "# Hello") #first.md
MD.create("first document", "# Hello") #first-document.md

Create multiple markdown

MD.create_many(["first","second"], ["# first","# second"]) #first.md second.md

MD.create_many(["first document","second document"], ["# first","# second"]) #first-document.md second.md

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