Skip to content

Commit

Permalink
chore(core): Limit side-loaded content to text only when not expectin…
Browse files Browse the repository at this point in the history
…g binary
  • Loading branch information
alerque committed Oct 23, 2024
1 parent 4bd9571 commit b122dab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/tableofcontents/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function package.readToc (_)
return false -- No TOC yet
end
local doc = tocfile:read("*all")
local toc = assert(load(doc), tocfile_name)()
local toc = assert(load(doc), tocfile_name, "r")()
SILE.scratch._tableofcontents = toc
return SILE.scratch._tableofcontents
end
Expand Down

0 comments on commit b122dab

Please sign in to comment.