Skip to content

Commit fe3aaa8

Browse files
committed
try to fix jats test
1 parent 7776afe commit fe3aaa8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/resources/filters/main.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ import("./layout/latex.lua")
8585
import("./layout/html.lua")
8686
import("./layout/wp.lua")
8787
import("./layout/docx.lua")
88+
import("./layout/jats.lua")
8889
import("./layout/odt.lua")
8990
import("./layout/pptx.lua")
9091
import("./layout/table.lua")

src/resources/filters/quarto-pre/callout.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -800,12 +800,12 @@ function jatsCallout(node)
800800
local contents = resolveCalloutContents(node, true)
801801

802802
local boxedStart = '<boxed-text>'
803-
if div.attr.identifier and div.attr.identifier ~= '' then
804-
boxedStart = "<boxed-text id='" .. div.attr.identifier .. "'>"
803+
if node.attr.identifier and node.attr.identifier ~= '' then
804+
boxedStart = "<boxed-text id='" .. node.attr.identifier .. "'>"
805805
end
806-
807806
contents:insert(1, pandoc.RawBlock('jats', boxedStart))
808807
contents:insert(pandoc.RawBlock('jats', '</boxed-text>'))
808+
809809
return pandoc.Div(contents)
810810
end
811811

0 commit comments

Comments
 (0)