Project

md_edit

0.0
No commit activity in last 3 years
No release in over 3 years
Find a section of a markdown document to edit using the name of the heading
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.6.1, ~> 0.6
>= 0.1.7, ~> 0.1
 Project Readme

Introducing the md_edit gem

require 'md_edit'


s = "# Thoughts

## Car

This will be the car history

## Bicycle

Like a bicycle log.

### Brakes

Front brakes need some work.

## Fridge

When did it last get cleaned out?
"


mde = MdEdit.new s
mde.q 'c' #=> ["car"]
mde.find 'car'
# => ["## Car", ["This will be the car history"]] 

mde.find 'bicycle'

#=> ["## Bicycle", ["Like a bicycle log.", ["### Brakes", ["Front brakes need some work."]]]] 

The md_edit gem can find a section of a markdown document by its heading. This can be helpful when editing a large document from a web page interface similar to editing a wiki page.

Resources

markdown lookup query mdedit md_edit