commit c87a4b1e5205bd7bf657f771be21ba4fba6b0a37
Author: Théo Cavignac <theo.cavignac@gmail.com>
Date:   Sun Jun 25 19:00:44 2023 +0200

    Define PANDOC_WRITER_OPTIONS for pandoc 3+ compatibility.
    
    As specified in the Pandoc 3.0 release PANDOC_WRITER_OPTIONS is not longer defined by pandoc. This fixes the writer.

diff --git a/djot-writer.lua b/djot-writer.lua
index ac33bf4..bf3e041 100644
--- a/djot-writer.lua
+++ b/djot-writer.lua
@@ -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