Mikael's blog

A developers seventh time trying to maintain a blog

Tag #markdown

And just like that... | July 14, 2023 at 06:15

... I started on yet another rewrite. ## Stargazing I've had my eye on [Astro](https://astro.build) for a while now. One of the things that caught my eye was just how much it looked like [Svelte](https://svelte.dev). Consider the following examples: ````astro --- import BlogPost from "../components/BlogPost.astro"; const allBlogPosts = await fetch("https://blog.lofjard.se/api/blogposts/all", data => { return await data.json(); }); --- <div class="blog-list"> { allBlogPosts.map(item => ( <BlogPost item={item} /> ))} </div> <style> .blog-list { width: 600px; margin: 0 auto; } </style> ```` vs ````svelte <script> import BlogPost from "../components/BlogPost.svelte"; const allBlogPosts = await fetch("https://blog.lofjard.se/api/blogposts/all", data => { return await data.j

4 Hours of Markdown | March 29, 2013 at 13:17

Wow, that was kind of exhausting. I've completed my rewrite of all my blog posts into Markdown. Somewhere in the middle I found why my inline HTML didn't work and that made my old posts look almost acceptable, but the syntax highlighted source code didn't work anymore since I had moved the highlighting code into the `marked` configuration. So on I went into the abyss, continuing to rewrite (more like edit) all my older posts. While I was at it I re-indented all source code examples into using 2-space indentation. Man, some posts do have a lot of source code in them. =) I made good use of SSH for connecting to my server from my parents-in-laws' cabin (where I've spent the last week). `ssh -L 8080:localhost:5984 lofjard.se` made sure I could connect to the CouchDB instance on lofjard.se.

Marked Up With Markdown | March 28, 2013 at 14:59

Desperate, as always, for lowering my blogging threshold I implemented [Markdown](http://daringfireball.net/projects/markdown/) syntax for the blog. As I did this through use of the [marked](https://github.com/chjj/marked/) plugin I lost support for inline HTML (might be a setting though). For a few hours this means that my old blog posts will look ugly until I've gone through the backlog and converted it to Markdown.

Sorry, sharing is not available as a feature in your browser.

You can share the link to the page if you want!

URL