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 , can stay close to the sentence that needs it. A second display formula has room to breathe:
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:
- formulas remain readable before they become MathML;
- media stays beside the page that uses it;
- checked page links, such as the blog index, remain
ordinary links in the source:
- the authored relationship is easy to read;
- the generated URL is resolved by Heine.
The short route from source to result is equally suitable for a numbered sequence:
- write the page;
- build it;
- listen to the result.
And for a modest checklist:
- Keep the formula in the article.
- Keep the audio asset with the article.
- Convince Euclid to record a sequel.
| Source form | Here it provides |
|---|---|
*text* | a small emphasis |
`code` | an identifier in running prose |
| a note2 | a useful aside |
Right-to-Left Text
لا يوجد طريقٌ ملوكيٌّ إلى الهندسة.
Arabic rendering of "There is no royal road to geometry", a traditional saying attributed to Euclid by Proclus.
The audio element is trusted raw HTML because its controls and preload policy are browser features, not Markdown syntax.
Footnotes keep an aside out of the sentence that prompted it.