I hope somebody finds it useful and what’s even more important I hope to hear some feedback on my approach on how to parse Markdown stream in real time.
I have published a new project on GitHub called @lixpi/markdown-stream-parser https://github.com/Lixpi/markdown-stream-parser (apparently I can’t post links, that’s ridiculous!)
You can also find a demo link on github page.
Please note that rendering part is just for demo, parser itself is not concerned about rendering, you can render the output the way you like.
Also at the end of the README.md you can find some additional information about future plans and potentially better ways to approach this problem.
Again, any type of feedback is absolutely welcome!
More than one post like you are doing with your new account, and it looks like you only came here to spam your github on your world tour.
I can assure readers, an actual stream parser that can accept arbitrary code point bytes with markdown as chunks and relay in a new format such as HTML or ANSI codes as rapidly as received when determinate and practical is not that easy…
Yes, certainly I’m enthusiastic about sharing projects I believe could benefit the community.
As mentioned in my post, this is very much an open-ended research. The parser I’ve developed handles many straightforward cases but does struggle with more complex examples (which I’ve intentionally included in the demo).
My primary goal here is collaborative improvement. I’m actively exploring alternatives like Tree-sitter to enhance parsing accuracy, but I recognize the limitations of working in isolation.
I’m genuinely seeking constructive feedback on improving the approach. By combining our collective knowledge, we can develop better solutions that benefit each one of us.