#markdown #extract #section #expression #file #regex #regular

app markdown-extract-cli

Extract sections of a markdown file with a regular expression

1 stable release

2.1.0 Oct 13, 2024

#425 in Text processing

Download history 198/week @ 2024-10-12 13/week @ 2024-10-19

211 downloads per month

MIT license

16KB
241 lines

Markdown Extract CLI

Crates.io Docker Pulls Build & Test

Extract sections of a markdown file with a regular expression.

Usage

Given a document called my-document.md:

# Welcome

This is my amazing markdown document.

## Extract me!

This section should be pulled out.

You can extract the second section with the following command:

$ markdown-extract "Extract me!" my-document.md
## Extract me!

This section should be pulled out.

Installation

If you've got Rust installed on your system, you can simply install markdown-extract with Cargo.

$ cargo install markdown-extract-cli

Dependencies

~8MB
~137K SLoC