Math, Tables and Quotes
Technical writing is more than prose and code. This post shows the other building blocks Markdown gives you in Chapter.
Math
Wrap TeX in single dollar signs for inline math: the time complexity of binary search is
Use double dollar signs on their own lines for display math:
Formulas are rendered to SVG at build time by MathJax, so readers download no math library. Long formulas scroll sideways on narrow screens instead of overflowing the page:
Tables
GitHub-flavoured tables are supported, including column alignment:
| Structure | Lookup | Insert | Ordered |
|---|---|---|---|
| Array | No | ||
| Sorted array | Yes | ||
| Hash map | No | ||
| Balanced tree | Yes |
Wide tables scroll inside their frame rather than stretching the page:
| Method | Path | Auth | Rate limit | Cache | Idempotent | Description |
|---|---|---|---|---|---|---|
GET |
/posts |
None | 600/min | 60 s | Yes | List published posts, newest first |
POST |
/posts |
Token | 30/min | None | No | Create a draft post |
PATCH |
/posts/{id} |
Token | 60/min | None | No | Update a post’s title, body or tags |
DELETE |
/posts/{id} |
Token | 30/min | None | Yes | Delete a post and its comments |
Quotes and footnotes
Programs must be written for people to read, and only incidentally for machines to execute.
— Harold Abelson and Gerald Jay Sussman, Structure and Interpretation of Computer Programs
Footnotes keep asides out of the main text.1 They are collected at the end of the post with a link back to where they were referenced.2
Lists
Task lists are handy for checklists in tutorials:
- Install Node.js 22
- Create the project from the template
- Set
urlinsrc/config/site.ts - Write the first post
Ordered lists can hold code and nested lists:
-
Build the site:
Terminal window pnpm build -
Check the output:
dist/holds the pagesdist/rss.xmlis the feed
-
Deploy
dist/.