Skip to content
Pongpanot

Markdown style reference

Every formatting element this site supports, in one place — headings, lists, code, tables, images and quotes.

Written by
Pongpanot Phokrachang
Published
Reading time
1 min

This page is a living reference for writing on this site. Keep it, or delete it once you have published your own articles.

Text

Paragraphs are set at a comfortable reading width. You can use bold, italic, inline code and links.

Lists

  • Unordered lists use simple bullets
  • Keep items short
    • Nested items are indented
  1. Ordered lists suit real sequences
  2. Like steps in a process

Code

export function readingTime(words: number, wpm = 220): number {
  return Math.max(1, Math.round(words / wpm));
}

Tables

Metric Target
LCP 2.5 s or less
INP 200 ms or less
CLS 0.1 or less

Quotes

A blockquote is for quoting someone else. Credit the source underneath.

Images and captions

Put images next to the article file and reference them with a relative path. In MDX, wrap them in a figure to add a caption:

<figure>
  <img src="./diagram.png" alt="Describe what the image shows" />
  <figcaption>A short caption.</figcaption>
</figure>

Thai text

ภาษาไทยจะแสดงผลด้วยฟอนต์ Noto Sans Thai โดยอัตโนมัติ และมีระยะบรรทัดที่อ่านสบายขึ้น