
December 9, 2025
math, first post
Blog introduction and also a test for math/LaTeX functionality.
I've wanted to write blogs/posts for a long time, but I fear I'm pretty bad at putting my thoughts into words. I think taking the time to at least format how I want my own blog will look will motivate me to continue writing...
I like MD formatting and static blog generators are easy to set up and work with, but I really wanted the flexibility of customizing it to match how the rest of my website looks. Also, since I typically write any MD file in Obsidian, there are minimal differences I need to consider when displaying a file as a webpage.
I used remark and rehype to serialize and get post data, and then MDXComponentProps to make it look nicer.
It takes a fair bit of messing around with to find a format I like, and I'm still not sure if I'm happy with how it looks yet. I'll probably be making changes a lot as time goes on until I'm happy.
Math equations and such are rendered as svgs, which I definitely prefer over other formats, but it makes it harder for anyone to copy what I write. I don't know if this will ever be relevant, but it's something I have to consider haha.
Here's some inline math:
Here's a display equation:
Multiple lines using cases:
Multiple lines using align*:
This is for the formatting of code blocks. Inline code looks like this.
This is what a code block looks like:
for (int i=0; i<5; i++) {
printf("%d", i);
}
Being able to see the language and syntax highlighting is on my to-do list.