diff --git a/Makefile b/Makefile index 6d2b59b0c04d648de1a17ed35a8d2dda527c5e07..b06646597f429e09727eac10a855cfb68d8da309 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)