You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm interested in writing a Pandoc reader/writer for .norg files. Since those are typically written in Lua, I was wondering if any existing parsing-related code could be leveraged for use with Pandoc. A suggestion floating around was to use Treesitter AST but I'm not familiar with that, so I wanted to ask for your advice.
The text was updated successfully, but these errors were encountered:
raj-magesh
changed the title
Suggestions for implementing custom Pandoc reader/writer
Suggestions for implementing custom Pandoc reader/writer?
Dec 18, 2022
I believe that work on a pandoc reader/writer has been started multiple times in multiple places by multiple people. The one project that I know from the top of my head is this one: https://github.com/Simre1/neorg-haskell-parser
This is definitely something that we want to see happen but at the moment all maintainers of Neorg (and the Norg spec) are pretty bandwidth-limited. Our discord is probably a good place to discuss this and potentially find other people interested in working on this (I know that the author of the link above is also on that server).
In terms of advice: I myself also do not know much about pandoc parsers. I believe the reason for the haskell-based project is because pandoc is written in Haskell. I do not know much about its lua interoperability.
That said, the norg parser used by Neorg is based on tree-sitter but also that one is likely to undergo a major rewrite in some unpredictable future..
Hope this helps in terms of providing some context here rather than letting the issue sit stale 🙂
Congrats on 1.0!
I'm interested in writing a Pandoc reader/writer for .norg files. Since those are typically written in Lua, I was wondering if any existing parsing-related code could be leveraged for use with Pandoc. A suggestion floating around was to use Treesitter AST but I'm not familiar with that, so I wanted to ask for your advice.
The text was updated successfully, but these errors were encountered: