Closed josephsdavid closed 2 years ago
Heyo! This should now be supported through the mathematics
extension. It's bundled by default if you load the exporter will all extensions:
["core.export.markdown"] = {
config = {
extensions = "all",
}
},
Lemme know if it works as intended :P
I am getting an error with extensions set to all for the above norg file with
@math
i = 1
@end
. Here is the traceback:
Error executing vim.schedule lua callback: .../neorg/lua/neorg/modules/core/export/markdown/module.lua:340: attempt to index a nil value
stack traceback:
.../neorg/lua/neorg/modules/core/export/markdown/module.lua:340: in function 'recollector'
...ker/start/neorg/lua/neorg/modules/core/export/module.lua:126: in function 'descend'
...ker/start/neorg/lua/neorg/modules/core/export/module.lua:116: in function 'descend'
...ker/start/neorg/lua/neorg/modules/core/export/module.lua:130: in function 'export'
...ker/start/neorg/lua/neorg/modules/core/export/module.lua:138: in function 'on_event'
...e/nvim/site/pack/packer/start/neorg/lua/neorg/events.lua:159: in function <...e/nvim/site/pack/packer/start/neorg/lua/neorg/events.lua:146>
In neorg/modules/core/export/markdown/module.lua
, here is the value of output
(the input to the function ranged_tag
that seems to be missing some information:
{ "i = 1\n" }
@esquires that's odd, it exports fine on my machine. Are you sure you're on the latest Neorg version and also the latest TS parser version? I believe I fixed something in TS first before the maths export was possible, so make sure it's not a problem there.
If the issue still persists then as always lemme know :)
Thanks! I updated yesterday but it looks like some more commits came in today to fix it. Sorry about that! It is working fine now.
Ay! Glad to hear that! I'll close this issue for now since it seems to be fine. Davey can reopen if anything is wrong.
Nice work !!
Prerequisites
Neovim Version
v0.6.1
Neorg setup
Actual behavior
Export does not work with the @math tag
Expected behavior
math is exported or it works
Steps to reproduce
add