Extract sections of a markdown file. This project mostly exists to help me learn
Rust, and to fill a niche requirement for extracting patch notes from
a CHANGELOG.md
.
If you've got Rust installed on your system, you can simple install
markdown-extract
with Cargo.
console
$ cargo install markdown-extract
A Docker container is also available, and can be installed with the following command:
console
$ docker pull sean0x42/markdown-extract
You can then run the container with the following command:
console
$ docker run -it sean0x42/markdown-extract --help
View the help guide if you like.
```console $ markdown-extract --help markdown-extract 1.1.0 Extract sections of a markdown file
USAGE:
markdown-extract [FLAGS]
FLAGS: -s, --case-sensitive Treat pattern as case sensitive -f, --first Only return the first match -h, --help Prints help information -i, --ignore-first-heading Do not include the top level section heading -r, --regex Compile pattern as a regular expression -V, --version Prints version information
ARGS:
Then extract matching sections in a markdown file.
```console $ markdown-extract --fr "^v1" CHANGELOG.md
... ```
There aren't many. I created this tool to extract patch notes from a
CHANGELOG.md
by version. If you have another use for this binary, please let
me know!