14 lines
276 B
Bash
Executable File
14 lines
276 B
Bash
Executable File
#!/usr/bin/env zsh
|
|
# Convert AsciiDoc to Markdown.
|
|
|
|
setopt LOCAL_OPTIONS ERR_RETURN NO_UNSET PIPE_FAIL
|
|
|
|
if [[ -v 1 ]]; then
|
|
print "usage: print foo | ${0}"
|
|
return 1
|
|
fi
|
|
|
|
\cat \
|
|
| asciidoc -b docbook --out-file=- - \
|
|
| pandoc --from=docbook --to=gfm --wrap=none
|