Markdown & Interactive Features Showcase

Published 2026-01-03 00:00 156 words 1 min read

A complete showcase of Markdown enhancements, code highlighting, callouts, and math formulas supported in Koharu.

This post showcases the rich Markdown capabilities and interactive features supported out of the box.

Code Highlighting & Line Numbers

Here is a TypeScript code example with syntax highlighting:

interface UserProfile {
  name: string;
  role: string;
  skills: string[];
}

const developer: UserProfile = {
  name: "Ayush",
  role: "Software Engineer",
  skills: ["TypeScript", "React", "Astro", "Node.js"]
};

console.log(`Hello from ${developer.name}!`);

Callouts & Containers

This is a standard informational callout block.

Here is a helpful tip for writing great blog posts.

Keep security credentials and API keys in environment variables, not in public repositories!

Math Equations (KaTeX)

Inline formulas: E=mc2E = mc^2 and eiπ+1=0e^{i\pi} + 1 = 0.

Block formulas:

∫−∞∞e−x2dx=π\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}

Interactive Spoilers & Text Effects

You can write spoilers like this: Hidden spoiler text that reveals on hover or click

And styled text like highlighted text or strikethrough.

Happy writing!

If you enjoyed this, leave a comment~

© 2026 Ayush Shukla @Ayush Shukla
Powered by theme astro-koharu · Inspired by Shoka