Skip to content

Commit 8d08289

Browse files
committed
fix(math-renderer): remove want table from requirements
1 parent 5192575 commit 8d08289

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lua/neorg/modules/core/math/renderer/module.lua

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ module.setup = function()
4141
"core.neorgcmd",
4242
"core.highlights",
4343
},
44-
wants = {
45-
"core.math.renderer.latex",
46-
},
4744
}
4845
end
4946

@@ -110,8 +107,9 @@ end
110107
module.load = function()
111108
local success, image_api = pcall(neorg.modules.get_module, module.config.public.image_renderer)
112109
assert(success, "Unable to load image_renderer module")
113-
local ok, math_image_generator = pcall(neorg.modules.get_module, module.config.public.image_generator)
110+
local ok = neorg.modules.load_module(module.config.public.image_generator)
114111
assert(ok, "Unable to load image_generator module")
112+
local math_image_generator = neorg.modules.get_module(module.config.public.image_generator)
115113

116114
nio = require("nio")
117115

0 commit comments

Comments
 (0)