Math, Markdown, and Media

Math

This is the first blog post. It keeps small emphasis, important points, unnecessary ceremony, and inline code close to the prose.

Inline mathematics, such as a2+b2=c2, can stay close to the sentence that needs it. A second display formula has room to breathe:

∑n=1∞1n2=π26

Localized values

Templates can present a number with the page locale without turning the value into hand-written punctuation. The visible text changes with the locale while the template keeps one numeric value:

{{ format_number(value=1234567.89, maximum_fraction_digits=2) }}

Fluent messages can format the same kind of value with NUMBER($value). The post metadata uses that form for word counts and reading-time estimates.

Dates and times follow the same locale-aware boundary. A template keeps an instant machine-readable in datetime, then presents it through the site's editorial time zone:

{{ format_datetime(
  value=page.published,
  date_style="long",
  time_style="short",
) }}

Fluent uses DATETIME($value, dateStyle: "long", timeStyle: "short") when a translation owns the surrounding sentence. Calendar dates remain date-only; Heine never assumes midnight to produce a time.

Audio

The short spoken introduction below is a local audio asset. Its relative URL is resolved by the browser from this post's generated URL, so it remains correct when the site is served below its configured base path. It is long enough to try seeking while heine serve handles byte-range requests.1

Code

fn main() {
    println!("Hello, world!");
}

Working Notes

The same Markdown source can keep a few ordinary structural notes nearby:

The short route from source to result is equally suitable for a numbered sequence:

  1. write the page;
  2. build it;
  3. listen to the result.

And for a modest checklist:

Source formHere it provides
*text*a small emphasis
`code`an identifier in running prose
a note2a useful aside

Right-to-Left Text

لا يوجد طريقٌ ملوكيٌّ إلى الهندسة.

Arabic rendering of "There is no royal road to geometry", a traditional saying attributed to Euclid by Proclus.

1

The audio element is trusted raw HTML because its controls and preload policy are browser features, not Markdown syntax.

2

Footnotes keep an aside out of the sentence that prompted it.