Skip to content

Commit 259a6d5

Browse files
author
Al Manning
committed
Add Support: Confluence Raw Block #4472
1 parent d5f7035 commit 259a6d5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/resources/extensions/quarto/confluence/publish.lua

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,13 @@ function Writer (doc, opts)
9191
block = injectAnchor(block)
9292
return block
9393
end,
94-
RawBlock = function ()
95-
-- Raw blocks inclding arbirtary HTML like JavaScript is not supported in CSF
94+
RawBlock = function (rawBlock)
95+
-- We just "pass-through" raw blocks of type "confluence"
96+
if(rawBlock.format == 'confluence') then
97+
return pandoc.RawBlock('html', rawBlock.text)
98+
end
99+
100+
-- Raw blocks inclding arbirtary HTML like JavaScript are not supported in CSF
96101
return ""
97102
end,
98103
RawInline = function (inline)

0 commit comments

Comments
 (0)