Table of Contents
Since the post does not have a description in the frontmatter, the first paragraph is used.
Theming
Use your favorite editor theme for your blog!
Theming for the website comes from builtin Shiki themes found in Expressive Code. You can view them here. A website can have one or more themes, defined in src/site.config.ts. There are three theming modes to choose from:
single: Choose a single theme for the website. Simple.light-dark-auto: Choose two themes for the website to use for light and dark mode. The header will include a button for toggling between light/dark/auto. For example, you could choosegithub-darkandgithub-lightwith a default of"auto"and the user’s experience will match their operating system theme straight away.select: Choose two or more themes for the website and include a button in the header to change between any of these themes. You could include as many Shiki themes from Expressive Code as you like. Allow users to find their favorite theme!
When the user changes the theme, their preference is stored in
localStorageto persist across page navigation.
Code Blocks
Let’s look at some code block styles:
def hello_world(): print("Hello, world!")
hello_world()def hello_world(): print("Hello, world!")
hello_world()python hello.pyAlso some inline code: 1 + 2 = 3. Or maybe even (= (+ 1 2) 3).
See the Expressive Code Docs for more information on available features like wrapping text, line highlighting, diffs, etc.
Basic Markdown Elements
- List item 1
- List item 2
Bold text
Italic text
Strikethrough text
In life, as in art, some endings are bittersweet. Especially when it comes to love. Sometimes fate throws two lovers together only to rip them apart. Sometimes the hero finally makes the right choice but the timing is all wrong. And, as they say, timing is everything.
- Gossip Girl
| Name | Age | City |
|---|---|---|
| Alice | 30 | New York |
| Bob | 25 | Los Angeles |
| Charlie | 35 | Chicago |
Images
Images can include a title string after the URL to render as a <figure> with a <figcaption>.

I’ve also added a special tag for pixel art that adds the correct CSS to render properly. Just add #pixelated to the very end of the alt string.

Admonitions
:::notetesting123:::Character Chats
:::duck**Did you know?** You can easily create custom character chats for your blog with MultiTerm!:::Adding Your Own
To add your own character, first add an image file to the top-level /public directory in your cloned MultiTerm repo. Astro cannot automatically optimize image assets from markdown plugins, so make sure to compress the image to a web-friendly size (<100kb).
I recommend Google’s free Squoosh web app for creating super small webp files. The characters here have been resized to 300 pixels wide and exported to webp with 75% quality using Squoosh.
After you’ve added your image, update the characters option in site.config.ts with your newly added image file and restart the development server.
Character Conversations
When there are multiple character chats in a row, the order of the chat image and chat bubble reverses to give the chat more of a back-and-forth appearance.
:::owlThis is a cool feature!:::
:::unicornI agree!:::You can specify the alignment (left or right) to override the default left, right, left, ... ordering.
:::unicorn{align="right"}Over here, to the right!:::GitHub Cards
GitHub overview cards heavily inspired by Astro Cactus.
::github{repo="stelcodes/multiterm-astro"}::github{user="withastro"}LaTeX/KaTeX Math Support
You can also display inline math via remark-math and rehype-katex.
Make those equations pretty! $ \frac{a}{b} \cdot b = a $Make those equations pretty!
Check out the KaTeX docs to learn about the syntax.
$$a + ar + ar^2 + ar^3 + \dots + ar^{n-1} = \displaystyle\sum_{k=0}^{n - 1}ar^k = a \bigg(\dfrac{1 - r^n}{1 -r}\bigg)$$