ignore element with status tex:ignore
This commit is contained in:
parent
37a9ce1b99
commit
cca4a39d89
@ -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…
x
Reference in New Issue
Block a user