NTBBloodbath / norgolith

The monolithic Norg static site generator built with Rust
GNU General Public License v2.0
14 stars 1 forks source link

[Feature] Move to rust-norg parser #1

Open NTBBloodbath opened 2 months ago

NTBBloodbath commented 2 months ago

This feature request proposes migrating Norgolith's Norg parsing functionality from a combination of tree-sitter and norg-pandoc to the rust-norg library.

Motivation

The current approach using tree-sitter offers speed benefits but might have limitations in error recovery and accuracy.

rust-norg offers several advantages:

Potential Benefits

NTBBloodbath commented 2 months ago

NB: README will also need to be updated to reflect those changes once made.

NTBBloodbath commented 1 month ago

Update: I'm currently working on a still private library called rust-norg-html (probably gonna rename it to rust-norg-converter) based on the rust-norg parser. The library is currently on hold until a non-flat NorgAST is produced in the rust-norg library so I can e.g. make proper HTML lists with nested elements.

NTBBloodbath commented 1 week ago

Update: the conversion library is currently embedded in the code and working, once it is much more complete it will be separated into a library that will be added as a dependency to the project.