aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-06-18 15:35:50 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-06-18 15:35:50 +1200
commit7a5cfd1dca26299abb9c29a32d7ecf0d7668a095 (patch)
tree36bc91a34f4650610384d8166cd4d905847bfffa /bin
parentmarkdown(1) can't into option terminators (diff)
downloaddotfiles-7a5cfd1dca26299abb9c29a32d7ecf0d7668a095.tar.gz
dotfiles-7a5cfd1dca26299abb9c29a32d7ecf0d7668a095.zip
Swap pandoc(1) for markdown(1)
> <REDACTED> OPTIONS Use "--" to end switch parsing. > <REDACTED> are you using the wrong markdown > <tejr> yeah checking versions > <REDACTED> 1.0.1 is the one I quoted > <tejr> ah > <tejr> it's documented, but does not work :^) > <tejr> $ pandoc -f markdown -t html -- /home/tom/.dotfiles/README.markdown > <tejr> based pandoc(1) > <REDACTED> hahaha > <REDACTED> welp > <tejr> welp indeed
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mdurls4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/mdurls b/bin/mdurls
index 18cd07f4..ab8b853b 100755
--- a/bin/mdurls
+++ b/bin/mdurls
@@ -9,10 +9,10 @@
#
# Check we have the programs we need
-hash markdown htmlurls || exit
+hash pandoc htmlurls || exit
# Pipe the output of markdown(1) on our args ...
-markdown "${@:-/dev/stdin}" |
+pandoc -f markdown -t html -- "${@:-/dev/stdin}" |
# ... into our own htmlurls
htmlurls