Workflow Status Crates.io

mdbook-cmdrun

This is a preprocessor for the rust-lang mdbook project. This allows to run arbitrary commands and include the output of these commands within the readme file.

Let's say we have these two files:

Markdown file: file.md ```markdown

Title

```

Python file: script.py ```python def main(): print("## Generated subtitle") print(" This comes from the script.py file") print(" Since I'm at in a scripting language,") print(" I can compute whatever I want")

if name == "main": main()

```

The preprocessor will call seq then python3, and will produce the resulting file:

```markdown

Title

1 2 3 4 5 6 7 8 9 10

Generated subtitle

This comes from the script.py file Since I'm at in a scripting language, I can compute whatever I want

```

Current version: 0.1.0
License: MIT