Blog

Markdown, code and equations

A non-sensitive demonstration of text-editor Markdown rendered by Astro at build time.

This is sample content, not a customer case study. Edit this ordinary Markdown file in your text editor; Astro generates the page without a CMS or a browser-side math engine.

Inline and display equations

Inline equations use a single pair of dollars: E=mc2E = mc^2.

Display equations use dollars on their own lines:

f(x)=x2+11−xf(x) = \frac{x^2 + 1}{\sqrt{1 - x}}

Literal code

Fenced code is displayed, not executed. Dollar signs inside code stay literal.

console.log("$not_math$");

A local image and a reference

A small locally bundled example diagram

The image belongs to this article’s source directory. References can start with normal links and Markdown footnotes.1

Footnotes

  1. KaTeX documentation, including the supported mathematical notation. This footnote is not a generated BibTeX bibliography. ↩