From c87a4b1e5205bd7bf657f771be21ba4fba6b0a37 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Th=C3=A9o=20Cavignac?= <theo.cavignac@gmail.com>
Date: Sun, 25 Jun 2023 19:00:44 +0200
Subject: [PATCH] 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.
---
 djot-writer.lua | 1 +
 1 file changed, 1 insertion(+)

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
-- 
2.47.3

