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

app markdown-extract-cli

Extract sections of a markdown file with a regular expression

1 stable release

2.1.0 Oct 13, 2024

#438 in Text processing

Download history 145/week @ 2024-10-07 65/week @ 2024-10-14

210 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

~5–7MB
~117K SLoC