apsis-book/content/concepts/physics
dev f117f20930 Write the notation in the text, not in a code span
A quantity was written in an inline code span, as in `0.002 m^2/kg`, so
the caret was drawn literally and the span looked like code. A hundred and
ninety-five of them are now inline formulas, and with them the powers of
ten, the Greek letters, the expressions with an operator in them, and the
symbols with a subscript. Single letters went the same way, except the
three that name a classification in the format, which are data rather
than mathematics and stay monospaced.

Drawing a code block as a formula was removed rather than refined. The
guess was wrong in practice: a doc comment in the library carries a Rust
example in a fence with no language on it, and the example holds an equals
sign, so the page drew a program as a formula and reported the underscores
in its identifiers as script markers. A code block is now drawn as a code
block and nothing else, and the reader that guessed is gone, with five
hundred lines of parser and twenty-three tests that tested it.

The check on the formulas was comparing the source with itself. The source
is carried beside the MathML for a reader to copy, and both the Rust check
and the audit were reading the whole span, so a formula that lost every
number still passed. Both now take the MathML alone, and the audit counts
only the text of a leaf element, because a browser drops text that has no
element around it and counting that text made the check pass whatever the
renderer produced. With the check made real it found the program drawn as
a formula, which is what led to the guess being removed.
2026-10-02 12:45:56 +08:00
..
calendar-and-mjd.md Write the formulas in the notation Markdown has for them 2026-10-02 11:52:17 +08:00
calendar-and-mjd.zh.md Write the formulas in the notation Markdown has for them 2026-10-02 11:52:17 +08:00
earth-rotation-angle.md Write the notation in the text, not in a code span 2026-10-02 12:45:56 +08:00
earth-rotation-angle.zh.md Write the notation in the text, not in a code span 2026-10-02 12:45:56 +08:00
geodesy-wgs84.md Write the notation in the text, not in a code span 2026-10-02 12:45:56 +08:00
geodesy-wgs84.zh.md Write the notation in the text, not in a code span 2026-10-02 12:45:56 +08:00
leap-seconds.md Write the formulas in the notation Markdown has for them 2026-10-02 11:52:17 +08:00
leap-seconds.zh.md Write the formulas in the notation Markdown has for them 2026-10-02 11:52:17 +08:00
reference-frames.md Write the notation in the text, not in a code span 2026-10-02 12:45:56 +08:00
reference-frames.zh.md Write the notation in the text, not in a code span 2026-10-02 12:45:56 +08:00
time-scales.md Write the formulas in the notation Markdown has for them 2026-10-02 11:52:17 +08:00
time-scales.zh.md Write the formulas in the notation Markdown has for them 2026-10-02 11:52:17 +08:00