From 600347778cddcbaf3f7b0ff5924fdec94fe501de Mon Sep 17 00:00:00 2001 From: Marie-Helene Burle Date: Fri, 31 May 2019 18:12:10 -0700 Subject: Add -s flag to pandoc By default, pandoc produces a document fragment. Adding the --standalone flag allows to get the title of the document. --- ranger/data/scope.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ranger/data/scope.sh b/ranger/data/scope.sh index 9a9f5160..2cba7d0e 100755 --- a/ranger/data/scope.sh +++ b/ranger/data/scope.sh @@ -96,7 +96,7 @@ handle_extension() { ## DOCX docx) ## Preview as markdown conversion - pandoc -t markdown "${FILE_PATH}" && exit 5 + pandoc -s -t markdown "${FILE_PATH}" && exit 5 exit 1;; ## XLSX -- cgit 1.4.1-2-gfad0