Skip to content
John's Blog
English

Search

Searching… No matching pages. Matching pages are listed below. Search is unavailable. Please try again.

Markdown, Typography, and KaTeX Math

Guest author attribution, sticky page outlines, tables, citations, footnotes, and client-side KaTeX math rendering.

  • Jessica Jonas
  • 2 minutes
Abstract typographic waves representing technical writing and formulas
Authoring Rich Content Part 1 of 3
On this page

Technical writing frequently needs more than plain paragraphs—clear hierarchy, tabular comparisons, attributed quotes, footnotes, and readable mathematical notation all help keep complex architecture notes concise.

Notice the byline above: any article can override the default site author directly in front matter (here, Jessica Jonas), while preserving normalized reading time and clickable topic tags.

Structured hierarchy & table of contents

Headings (##, ###) automatically populate both the sticky On this page outline on desktop viewports and the collapsible mobile outline above the article body.

Comparison tables

Markdown tables scale smoothly within the readable article column:

CapabilityAuthoring SyntaxModern Blog Behavior
Guest Authorauthor.nameOverrides site author on byline & metadata
Math Renderingmath: true + KaTeX delimitersLoads bundled modern-math.js on demand
Page OutlineenableTOC (true default)Sticky desktop TOC + collapsible mobile view
Series Orderingseries + series_weightSeries index panel + Prev/Next links

Blockquotes, citations & footnotes

Don’t communicate by sharing memory; share memory by communicating. — Rob Pike1

Emoji aliases like ✨ and 🚀 remain enabled when enableEmoji: true is set in hugo.yaml.

Mathematical notation with KaTeX

When math: true is configured in page front matter alongside features.math.enable, inline expressions such as $T(n) = O(n \log n)$ and display equations render cleanly with bundled KaTeX without external script CDNs:

$$ \text{Attention}(Q, K, V) = \text{softmax}\!\left(\frac{QK^\top}{\sqrt{d_k}}\right)V $$

And bounded percentile estimation over latency buckets:

$$ \hat{p}_q = x_k + \frac{qN - C_{k-1}}{c_k} \cdot (x_{k+1} - x_k) $$

Summary

Clean typographic spacing, semantic contrast in light and dark themes, and on-demand KaTeX loading keep heavy pages lightweight while preserving expressive technical prose.


  1. Excerpted from Rob Pike’s Go concurrency talk during Gopherfest, November 2015. ↩︎