Skip to content

Commit

Permalink
Define PANDOC_WRITER_OPTIONS for pandoc 3+ compatibility.
Browse files Browse the repository at this point in the history
As specified in the Pandoc 3.0 release PANDOC_WRITER_OPTIONS is not longer defined by pandoc. This fixes the writer.
  • Loading branch information
Lattay authored Jun 25, 2023
1 parent 1c622bc commit c87a4b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions djot-writer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@ Inlines.Note = function(el)
end

function Writer (doc, opts)
PANDOC_WRITER_OPTIONS = opts
local d = blocks(doc.blocks, blankline)
local notes = {}
for i=1,#footnotes do
Expand Down

0 comments on commit c87a4b1

Please sign in to comment.