Skip to content

A simple markdown pre-processor to include bash output

License

Notifications You must be signed in to change notification settings

sellorm/bashdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bashdown

A markdown pre-processor for inline bash.

Have you ever written a command line tool and wanted to include it's output in your documentation?

Then bashdown is for you.

Write your markdown files as usual and include bash code sections as normal using "```bash".

When you pass this file through bashdown, it will run the code in the code block and include that output inside the rest of the markdown.

This README.md was generated using bashdown. Check README.bashdown for the file that's used to generate README.md

This project was inspired by tools like quarto and Rmarkdown, but has significantly fewer dependencies due to it's much more limited scope.

Usage

Basic usage is as follows:

# bashdown README.bashdown > README.md

Full usage information can be obtained from the built in help.

bashdown --help
usage: bashdown [-h] filename

Processes in-line bash in markdown files

positional arguments:
  filename

optional arguments:
  -h, --help  show this help message and exit

For more information please see the docs

License

MIT © Mark Sellors

About

A simple markdown pre-processor to include bash output

Resources

License

Stars

Watchers

Forks

Packages

No packages published