(contents of this file are unimportant)
when running :Neorg export to-file a.md markdown, i get an error saying `Unable to export file - did not find exporter for filetype 'markdown'.
Expected behavior
expected to export into a markdown file without any errors
Steps to reproduce
have a neorg file of any name with any content:
* This
- and this
* And That
run nvim command: Neorg export <filename> markdown
errors should be present
Potentially conflicting plugins
there shouldn't be any conflicting plugins
Other information
at first i assumed that im just stupid, so i dug around the documentation. after not finding anything that could have caused this, i started digging around the source code. this issue is that the "core.export.markdown" module is not loaded. i was able to resolve this by adding this line:
module.setup = function()
return {
success = true,
requires = {
"core.integrations.treesitter",
"core.export.markdown", -- <- this line
},
}
end
to lua/neorg/modules/core/export/module.lua on line 32 or by loading the "core.export.markdown" module in neorg's setup function.
i suspect that this is not a valid fix, since we should be able to load any parser modules depending on the filetype specified(its not an issue now, since there is only one parser, but it could turn into one in the future).
other, probably a more preferable fix, which should be possible would be, in function: lua/neorg/modules/core/export/module.lua:82:
this would ideally be changed to load the module on the fly, if it is not present in loaded modules and then get it and probably its configuration as well.
now, after writing all this i realize that this is not really a bug, but it took me some time to figure out and i wasn't able to find anything in the documentation which would hint that i should also load the parser module. im still reporting this as a bug, because i think that at least the documentation should state that one should also load the parser module for the filetype one wishes to export to.
Prerequisites
Neovim Version
v0.8.0-dev(built from source on commit: cf2738109af69f572034147a1aad35a200608180)
Neorg setup
Actual behavior
while in file
a.norg
which contains:(contents of this file are unimportant) when running
:Neorg export to-file a.md markdown
, i get an error saying `Unable to export file - did not find exporter for filetype 'markdown'.Expected behavior
expected to export into a markdown file without any errors
Steps to reproduce
Neorg export <filename> markdown
Potentially conflicting plugins
there shouldn't be any conflicting plugins
Other information
at first i assumed that im just stupid, so i dug around the documentation. after not finding anything that could have caused this, i started digging around the source code. this issue is that the "core.export.markdown" module is not loaded. i was able to resolve this by adding this line:
to lua/neorg/modules/core/export/module.lua on
line 32
or by loading the"core.export.markdown"
module in neorg's setup function.i suspect that this is not a valid fix, since we should be able to load any parser modules depending on the filetype specified(its not an issue now, since there is only one parser, but it could turn into one in the future).
other, probably a more preferable fix, which should be possible would be, in function:
lua/neorg/modules/core/export/module.lua:82
:this would ideally be changed to load the module on the fly, if it is not present in loaded modules and then get it and probably its configuration as well.
now, after writing all this i realize that this is not really a bug, but it took me some time to figure out and i wasn't able to find anything in the documentation which would hint that i should also load the parser module. im still reporting this as a bug, because i think that at least the documentation should state that one should also load the parser module for the filetype one wishes to export to.
Help
No
Implementation help
No response