Mathias Biilmann describes two typographic improvements made to his blog using Cheng Lou's new pretext JavaScript library. The first applies the Knuth-Plass text justification algorithm — a global paragraph optimization approach originally developed for TeX — to produce evenly spaced justified text, unlike the greedy line-by-line method built into browsers. The second scales article titles to fit on a single line at exactly 80% of viewport width or the full content column width. The implementation was driven by an AI agent runner using a short prompt referencing pretext's example code.
Sort: