Skip to content

Commit 52271d9

Browse files
committed
in lua api, don't set a default if cite-method is false
1 parent eee790d commit 52271d9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/resources/pandoc/datadir/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2082,7 +2082,7 @@ quarto = {
20822082
is_format = format.isFormat,
20832083

20842084
cite_method = function()
2085-
local citeMethod = param('cite-method', 'citeproc')
2085+
local citeMethod = param('cite-method', nil)
20862086
return citeMethod
20872087
end,
20882088
pdf_engine = function()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function Pandoc(doc)
22
assert(quarto.doc.pdf_engine() == "xelatex", "`quarto.doc.pdf_engine()` should be xelatex but is instead: " .. quarto.doc.pdf_engine())
3-
assert(quarto.doc.cite_method() == "natbib", "`quarto.doc.cite_method()` should return natbib but return instead: " .. quarto.doc.cite_method())
3+
assert(quarto.doc.cite_method() == nil, "`quarto.doc.cite_method()` should return natbib but return instead: " .. (quarto.doc.cite_method() or 'unset'))
44
return doc
55
end

0 commit comments

Comments
 (0)