Skip to content

Commit da19435

Browse files
committed
rename shim, use require
1 parent 43ccbd5 commit da19435

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
-- customastshim.lua
1+
-- apishim.lua
22
-- Copyright (C) 2020-2023 Posit Software, PBC
33

4+
local _format = require '_format';
45
_quarto = {
56
ast = {
67
walk = function(el, filter)
78
return el:walk(filter)
89
end
9-
}
10+
},
11+
format = _format;
1012
}

src/resources/filters/crossref/crossref.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ function import(script)
1717
local path = PANDOC_SCRIPT_FILE:match("(.*[/\\])")
1818
dofile(path .. script)
1919
end
20+
import("../common/apishim.lua")
21+
2022
import("index.lua")
2123
import("preprocess.lua")
2224
import("sections.lua")
@@ -46,10 +48,9 @@ import("../common/table.lua")
4648
import("../common/string.lua")
4749
import("../common/debug.lua")
4850

49-
import("../common/customastshim.lua")
5051
-- [/import]
5152

52-
-- note that the custom-ast-shim.lua import should _not_ happen on main.lua
53+
-- note that the apishim.lua import should _not_ happen on main.lua
5354

5455
initCrossrefIndex()
5556

src/resources/filters/quarto-init/quarto-init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ import("../common/filemetadata.lua")
1616
import("../common/meta.lua")
1717
import("includes.lua")
1818
import("resourcerefs.lua")
19-
import("../common/customastshim.lua")
19+
import("../common/apishim.lua")
2020

2121
-- [/import]
2222

23-
-- note that the custom-ast-shim.lua import should _not_ happen on main.lua
23+
-- note that the apishim.lua import should _not_ happen on main.lua
2424
-- it exists for us to be able to support filters that need to exist on IDE
2525
-- and do not require the full custom AST work.
2626

0 commit comments

Comments
 (0)