Skip to content

Commit 6ab95da

Browse files
committed
pandoc-quotes: use names to access Quoted element properties
Pandoc 2.15 changed the marshalling method; the undocumented `.c` field no longer gives access to all element properties.
1 parent d3191c5 commit 6ab95da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandoc-quotes.lua/pandoc-quotes.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,8 +460,8 @@ do
460460
-- the content of `quoted`, and the closing quote (as `pandoc.Str`).
461461
function insert_quot_marks (quoted)
462462
if not QUOT_MARKS then return end
463-
local quote_type = quoted.c[1]
464-
local inlines = quoted.c[2]
463+
local quote_type = quoted.quotetype
464+
local inlines = quoted.content
465465
local left, right
466466
if quote_type == 'DoubleQuote' then left, right = 1, 2
467467
elseif quote_type == 'SingleQuote' then left, right = 3, 4

0 commit comments

Comments
 (0)