ignore element with status tex:ignore
This commit is contained in:
parent
37a9ce1b99
commit
cca4a39d89
2 changed files with 4 additions and 2 deletions
|
@ -116,7 +116,7 @@ local function write_elem(tree, stash)
|
|||
end)
|
||||
end
|
||||
for _, elem in ipairs(tree) do
|
||||
if type(elem) ~= 'string' then
|
||||
if type(elem) ~= 'string' and not elem['tex:ignore'] then
|
||||
write_elem(elem)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -48,7 +48,9 @@ local function write_elem(tree, indent)
|
|||
out = out .. escape_text(elem)
|
||||
is_string = true
|
||||
else
|
||||
out = out .. write_elem(elem, inner_indent)
|
||||
if not elem['tex:ignore'] then
|
||||
out = out .. write_elem(elem, inner_indent)
|
||||
end
|
||||
is_string = nil
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue