As much as I like to do everything myself, I chose to use an off-the-shelf #Markdown parser for my personal site.
There may sometimes be a good reason to re-invent the wheel โ even if it is just to learn more about wheels โ but using an established tool or package can save you time and headaches. However, the key is to know which to use and when.
http://carledwardlyons.ca/articles/devlogs/blank/markdown-parser?ref_id=mastodon&ref_source=post
#markdownit #svelte #sveltekit #HTML #CSS #typescript #javascript #webdesign #webdev #software #devlog #blog
Implementing a Weblog Markdown Parser
My website is now a blog. A key part of developing this first weblog renderer was converting my weblog articles โ stored as static Markdown files โ into themed HTML pages. The implementation was simple, but making the right decisions required thinking abstractly about websites design.
Yay! My morning brain implemented the footnotes, a bit of this, a bit of that and I'm adding the urls to my config file as notes ๐