Hey devs! π
Today was about rewriting parts of my original HTML blog using Svelte and trying to build a simple CLI to convert Markdown to HTML β ran into a few snags but learned a lot.
π― What's my Goal today?
- Start rewriting my blog using Svelte.
- Make reusable components like
Navbar
,ContentBox
,Header
, andFooter
. - Build a basic Markdown-to-HTML CLI tool in JavaScript.
π§© Problems I Faced
- Got stuck trying to add images when converting markdown. For some reason, the paths break and they donβt show up in the generated HTML. Still need to debug that.
- Routing in Svelte only works with
use:link
. If I directly go to/post/day05
, it gives a 404. Guess I need to configure the dev server or use hash routing properly.
π‘ What I Learned
- Using
<slot />
and reusable Svelte components makes everything cleaner and modular. - Started building a small CLI in Node.js to turn
.md
files into HTML pages β super handy for my blog posts. - CLI tools feel like mini magic β even a simple one is exciting to build and see work.
πΈ Sneak Peek
Still fixing images and routing β but overall, good progress today!
Letβs connect if you're building your blog or experimenting with Svelte too:
Top comments (0)