Commit 3ae50df5 authored by Raniere Silva's avatar Raniere Silva
Browse files

Add --smart for Pandoc

Thanks to ocefpaf for request that.
parent 9dba3d29
Loading
Loading
Loading
Loading
+10 −7
Original line number Diff line number Diff line
PANDOC ?= pandoc
PANDOC_FLAGS = --smart

# R Markdown files.
SRC_RMD = $(wildcard ??-*.Rmd)
@@ -46,12 +47,14 @@ 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 \
	    ${PANDOC_FLAGS} \
	    --template=_layouts/slides \
	    -o $@ $<

# Pattern to build a generic page.
%.html : %.md _layouts/page.html $(FILTERS)
	${PANDOC} -s -t html \
	    ${PANDOC_FLAGS} \
	    --template=_layouts/page \
	    --filter=tools/filters/blockquote2div.py \
	    --filter=tools/filters/id4glossary.py \