From 4c9ea9c7dda52b91e1387a80948a35413bbbaddb Mon Sep 17 00:00:00 2001 From: malc Date: Tue, 21 Jul 2015 17:32:40 +0300 Subject: [PATCH] Add markdown support to llppac Via pandoc. --- .gitignore | 4 ++++ misc/completions/llppac.in | 2 ++ misc/llppac | 5 +++++ 3 files changed, 11 insertions(+) diff --git a/.gitignore b/.gitignore index 9a16fb2..b232e9a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,6 @@ /.config /build/ +/misc/completions/bash/llpp +/misc/completions/bash/llppac +/misc/completions/zsh/llpp +/misc/completions/zsh/llppac diff --git a/misc/completions/llppac.in b/misc/completions/llppac.in index 19aae4f..136b3cf 100644 --- a/misc/completions/llppac.in +++ b/misc/completions/llppac.in @@ -22,6 +22,7 @@ odg odp ods odt +md # images bmp @@ -50,3 +51,4 @@ x3f # fonts otf ttf +ttc diff --git a/misc/llppac b/misc/llppac index 42bf476..1237db1 100755 --- a/misc/llppac +++ b/misc/llppac @@ -92,6 +92,7 @@ if test -z "$type"; then application/pdf) type=pdf;; image/vnd.djvu) type=djvu;; text/html) type=html;; + text/plain) type=text;; application/msword) type=word;; application/vnd.openxmlformats-officedocument.* \ | application/vnd.ms-powerpoint \ @@ -174,6 +175,10 @@ EOF unset filt conv='dvipdf "$1" "$casp"' };; + text) { + conv='pandoc -t epub - -o "$casp"' + caspsuf=.epub + };; *) die "unhandled filter type: '$type'";; esac -- 2.11.4.GIT