Merge branch '50-fix-handling-for-german-quotation-marks' into 'master'

Resolve "Fix Handling for German Quotation Marks"

Closes #50

See merge request fastexitlane/latex-boilerplate!30
This commit is contained in:
Dominik Becker 2021-02-14 10:26:29 +00:00
commit ed08a5f211
2 changed files with 7 additions and 1 deletions

View File

@ -12,7 +12,7 @@ fi
if [ $1 == "pandoc" ]
then
cat chapter/*.md > chapter/out.md
pandoc --citeproc --filter pandoc-crossref \
pandoc --lua-filter templates/germanquotes.lua --citeproc --filter pandoc-crossref \
-M cref=true --top-level-division=chapter \
--bibliography library/library.bib --biblatex \
-o chapter/out.tex chapter/out.md

View File

@ -0,0 +1,6 @@
-- see https://github.com/jgm/pandoc/issues/5470#issuecomment-489158514
function Quoted(el)
if el.quotetype == 'DoubleQuote' then
return {pandoc.Str(""), pandoc.Span(el.content), pandoc.Str("")}
end
end