Replies: 1 comment 3 replies
-
In the end it is possible in purescript, but it felt like too much work, since you essentially need to copy pandoc-types. I decided to learn a bit of Haskell and continue with that. I'll continue working on this on the side, as it is a lot of fun. However, this will never be added to pandoc, since it depends on tree-sitter. Therefore, continuing work on a reader or lua filter would be necessary (stuff I wanted to avoid). Eventually I'll try and implement a writer, which would make conversion to norg possible (e.g markdown -> norg). That part would probably be accepted into pandoc. |
Beta Was this translation helpful? Give feedback.
-
I've been thinking about this for a while now and just started working on it.
Picking the right language was tricky. I've chosen purescript, since javascript can be used via FFI (tree-sitter bindings) and it is syntactically very close to Haskell (easier representation of pandoc types).
I was surprised how much it can do already.
You can try it out for yourself here. If you choose to do so, feel free to share your comments here or raise an issue over there.
If you can't get it to work you can check out what it does to this .norg file here.
Beta Was this translation helpful? Give feedback.
All reactions