From 3ae50df511b43693748c68a927bfdd96b61b6bcb Mon Sep 17 00:00:00 2001 From: Raniere Silva Date: Mon, 20 Apr 2015 15:54:10 -0300 Subject: [PATCH] Add --smart for Pandoc Thanks to ocefpaf for request that. --- Makefile | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 6d2b59b..b066465 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ PANDOC ?= pandoc +PANDOC_FLAGS = --smart # R Markdown files. SRC_RMD = $(wildcard ??-*.Rmd) @@ -46,17 +47,19 @@ preview : $(DST_ALL) # Pattern for slides (different parameters and template). motivation.html : motivation.md _layouts/slides.revealjs Makefile ${PANDOC} -s -t revealjs --slide-level 2 \ - --template=_layouts/slides \ - -o $@ $< + ${PANDOC_FLAGS} \ + --template=_layouts/slides \ + -o $@ $< # Pattern to build a generic page. %.html : %.md _layouts/page.html $(FILTERS) ${PANDOC} -s -t html \ - --template=_layouts/page \ - --filter=tools/filters/blockquote2div.py \ - --filter=tools/filters/id4glossary.py \ - $(INCLUDES) \ - -o $@ $< + ${PANDOC_FLAGS} \ + --template=_layouts/page \ + --filter=tools/filters/blockquote2div.py \ + --filter=tools/filters/id4glossary.py \ + $(INCLUDES) \ + -o $@ $< # Pattern to convert R Markdown to Markdown. %.md: %.Rmd $(R_CHUNK_OPTS) -- GitLab