This post demonstrates two ways to add supplementary information to your writing: footnotes and sidenotes.

Standard Footnotes

Footnotes use the standard GFM (GitHub Flavored Markdown) syntax1. They're great for citations, references, or tangential thoughts that would interrupt the main flow.

You can have multiple footnotes in a paragraph2, and they'll be numbered automatically. The content appears at the bottom of the article.

Here's another example with a longer footnote3.

Sidenotes (Tufte-style)

For a more elegant approach, use sidenotesSidenotes appear in the margin on wide screens, or inline on mobile. They're inspired by Edward Tufte's book design.. They keep supplementary content visible without requiring the reader to scroll.

Sidenotes work especially well for definitionsLike when you introduce a technical term that some readers might not know., asides, and commentary that enhances but doesn't interrupt.

When to Use Each

Use footnotes when:

  • Citing sources
  • Adding lengthy explanations
  • Content that's purely optional

Use sidenotes when:

  • Adding context readers might want immediately
  • Providing definitions or clarifications
  • Making witty asidesLike this one.

Technical Details

Both approaches work seamlessly:

  1. Footnotes use [^1] syntax and are processed by remark-gfm
  2. Sidenotes use the <Sidenote> component in MDX
<!-- Footnote syntax -->
Some text[^1].
 
[^1]: The footnote content.
 
<!-- Sidenote syntax -->
Some text<Sidenote number={1}>The sidenote content.</Sidenote>.

Footnotes

  1. This is a standard footnote. It appears at the bottom of the page.

  2. You can have as many footnotes as you need. They're automatically numbered.

  3. Footnotes can contain formatting, code, and even links.

React to this post: