Skip to content

Commit 4a87e4b

Browse files
committed
fixes
1 parent eb28161 commit 4a87e4b

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/resources/filters/customnodes/floatreftarget.lua

+1-2
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,6 @@ end, function(float)
864864
end
865865
})
866866
if count == 1 then
867-
print(float.content)
868867
img.identifier = float.identifier
869868
img.caption = quarto.utils.as_inlines(float.caption_long)
870869
return pandoc.Figure(
@@ -901,7 +900,7 @@ end, function(float)
901900
end
902901
decorate_caption_with_crossref(float)
903902
return pandoc.Figure(
904-
{float.content},
903+
quarto.utils.as_blocks(float.content),
905904
{float.caption_long},
906905
float.identifier
907906
)

src/resources/filters/normalize/parsehtml.lua

+1-3
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ function parse_html_tables()
8383
while cursor < len do
8484
-- find the first table start tag
8585
local i, j = string.find(el.text, start, cursor)
86-
print(len, cursor, i, j)
8786
if i == nil then
8887
-- no more tables
8988
break
@@ -96,7 +95,6 @@ function parse_html_tables()
9695
while cursor_2 < len do
9796
local k1, l1 = string.find(el.text, start, cursor_2)
9897
local k2, l2 = string.find(el.text, finish, cursor_2)
99-
print("nesting", nesting, k1, l1, k2, l2)
10098
if k1 == nil and k2 == nil then
10199
cursor = len
102100
break
@@ -137,7 +135,6 @@ function parse_html_tables()
137135
end
138136
end,
139137
})
140-
cursor = l2 + 1
141138
if #tableDoc.blocks ~= 1 then
142139
warn("Unable to parse table from raw html block: skipping.")
143140
skip = true
@@ -149,6 +146,7 @@ function parse_html_tables()
149146
end
150147
blocks:insert(tableDoc.blocks[1])
151148
end
149+
cursor = l2 + 1
152150
break
153151
end
154152
end

0 commit comments

Comments
 (0)