fix(PDF): code blocks - Use fenced_code_attributes and --highlight-style
This commit is contained in:
parent
b23344a36f
commit
68187f6e68
4
Makefile
4
Makefile
@ -24,7 +24,7 @@ CONTENT_LIST := $(shell find ${SRC_DIR} -type f -iname '*.md'|sort -u)
|
||||
# zenburn
|
||||
# haddock
|
||||
# breezedark
|
||||
HL_THEME ?= kate
|
||||
HL_THEME ?= breezedark
|
||||
TOC_TITLE ?= Sommaire
|
||||
|
||||
# Specific to PDF
|
||||
@ -45,7 +45,7 @@ public/${NAME}.html: public ${CONTENT_LIST}
|
||||
public/${NAME}.pdf: public ${CONTENT_LIST}
|
||||
$Qecho "[PREPA] PDF : contenu"
|
||||
# Cf. https://pandoc.org/chunkedhtml-demo/8.17-images.html for implicit_figures explanations (deactivated here)
|
||||
$Qpandoc -V colorlinks -V fontfamily="${FONT_FAMILY}" -V fontsize="${FONT_SIZE}" -V classoption:twoside --number-sections -V graphics --template="${LATEX_TEMPLATE}" --toc -V toc-title:'${TOC_TITLE}' -V papersize:a4 --from=markdown-implicit_figures --to=latex -o "public/${NAME}.pdf" ${CONTENT_LIST}
|
||||
$Qpandoc -V colorlinks -V fontfamily="${FONT_FAMILY}" -V fontsize="${FONT_SIZE}" -V classoption:twoside --number-sections -V graphics --template="${LATEX_TEMPLATE}" --toc -V toc-title:'${TOC_TITLE}' -V papersize:a4 --from=markdown-implicit_figures+fenced_code_attributes --highlight-style ${HL_THEME} --to=latex -o "public/${NAME}.pdf" ${CONTENT_LIST}
|
||||
|
||||
# END
|
||||
.PHONY: clean
|
||||
|
Loading…
Reference in New Issue
Block a user