diff --git a/examples/preprocess.md b/examples/preprocess.md index e1e84d0..d7d3fde 100755 --- a/examples/preprocess.md +++ b/examples/preprocess.md @@ -35,17 +35,48 @@ This content will be passed in as stdin and will be replaced. --- + Any command will work ~~~echo "You can do whatever, really" This doesn't matter, since it will be replaced by the stdout of the command above because the command will disregard stdin. ~~~ - --- + You can use this to import snippets of code from other files: ~~~xargs cat examples/import.md ~~~ + +--- + + +## More pre-process examples: + +### PlantUML + +``` +~~~plantuml -utxt -pipe +@startuml +A --> B: to +@enduml +~~~ +``` + +The above will be pre-processed to look like: + +NOTE: You need `plantuml` installed and in your `$PATH` + +``` +┌─┐ ┌─┐ +│A│ │B│ +└┬┘ └┬┘ + │ to │ + │ ─ ─ ─ ─ ─ >│ +┌┴┐ ┌┴┐ +│A│ │B│ +└─┘ └─┘ +