Monday | 15 APR 2024
[ previous ]
[ next ]

Failing to Parse Markdown

Date: 2023-05-01
Tags:  parsing, markdown

I made a very poor attempt at parsing markdown and I can't be bothered right now. The logic is complex and the code I wrote is probably making things more difficult than it needs to be.

Instead I'm going to switch to treating my blog as gemtext which is the format of the gemini space. I love the protocol and the lore behind it so it is fitting that I go that route.


Now that I've done it, I've bastardized gemtext for my own variant. I added some extra yaml frontmatter that I want to display. I also parse lines that start with https as links. I also added triple dashes as a code block in addition to backticks.

I'll continue to bastardize it :)