Gallery
About
I've been using the popular React Markdown renderers with Katex and Prism.js for rendering my Markdown and LaTeX, but was tired of having to bundle 300kb+ of min+gzip JS only for this (1.2MB+ of plain JS!). So I created a small Markdown renderer that does it all in a tiny package.I added a small playground to the homepage, please feel free to try it and let me know what you think!It's not perfect, it's definitely not "correct" in that I'm using Regex internally instead of a proper AST parser, but for my usecase and the majority of Markdown out there, this works perfectly fine (cue the StackOverflow post [1]). It's also conservative for this reason; no HTML by default, parsing wrong content produces escaped HTML entities instead of XSS.[1] https://stackoverflow.com/a/1732454
Comments (7)
actual final bundle size after tree shaking?
whats the actual bundle delta vs tree-shaking those existing renderers?
what parser are you using under the hood
spacing on code blocks looks tight
custom parser under the hood? bundle savings vs remark ecosystem are hard to ignore
what's the final bundle size you got it down to?
that bundle size drop is wild. what's the final gzip size?
Related Products
Free Currency Converter API
Limestone Digital
AI-Powered Software Development, Engineering Team Augmentation,
ChangeSpec
MobileGym: A Verifiable and Highly Parallel Simulation Platform for Mobile GUI A
IronFile - Completely Customizable
Turnkey Industrial SaaS Platform (80k+ LOC) • 12 Enterprise Connectors
Technologies.lat
Quality Assurance for software that is here for the long run
ComingUp