Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 536 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 536 Bytes

Markdown Extractor

A simple tool to extract a chunk of markdown and all dependents.

Usage

$ ./extract-markdown.sh "Usage" < README.md

\```bash
$ ./extract-markdown.sh "Usage" < README.md
\```

Haskell implementation

There is also a (much faster) Haskell implementation available. By default, this will return all children of any matched header until a header at the same level of the match is encountered.

To compile:

$ ghc --make Extract.hs

To invoke:

$ ./Extract "Usage" README.md