Skip to content

Commit ec423b8

Browse files
committed
WIP fix build
1 parent bb587ad commit ec423b8

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/soar_manual/debug_filter.lua

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
-- Debug filter to see what Pandoc is actually processing
2+
3+
function debug_all(elem)
4+
if elem.tag == "RawInline" or elem.tag == "RawBlock" then
5+
io.stderr:write("Found " .. elem.tag .. " with format: " .. (elem.format or "nil") .. " and text: " .. (elem.text or "nil") .. "\n")
6+
end
7+
if elem.tag == "Str" and elem.text and elem.text:match("index") then
8+
io.stderr:write("Found Str with index-related text: " .. elem.text .. "\n")
9+
end
10+
return elem
11+
end
12+
13+
return {
14+
{
15+
RawInline = debug_all,
16+
RawBlock = debug_all,
17+
Str = debug_all,
18+
Para = debug_all
19+
}
20+
}

0 commit comments

Comments
 (0)