You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An image that is not shown (images: false, an origin that is not in your list, or a refused URL) now renders Image not shown: alt text in a limmat-image-blocked span, so a reader can tell that an image was removed. It used to leave the bare alt text. The words are the new labels.imageNotShown. An image inside a link label still shows only its alt text.
An <img> gets the class limmat-image-loaded when it has loaded and limmat-image-failed when it fails. The optional style.css uses them: an image holds a placeholder box until it loads, so the text below does not jump, and a failed image shows its alt text in a soft pill.
Changed
[call](tel:+31201234567), irc:, ircs:, and xmpp: links are now links by default, the same list as Streamdown. To keep the old default, pass allowedProtocols: ['https', 'http', 'mailto'].
Fixed
A classPrefix with a space, quote, dot, or bracket, or an empty one, no longer breaks the Copy button or gives classes such as -link. A prefix that is not a plain class name uses limmat.
An empty or blank entry in labels keeps its default, so the Copy button and the table always have a name. The Copy button's name used to be js.
allowedProtocols that is not an array uses the default list. It used to throw a TypeError from createRenderer.
The language label in a code header drops bidi, control, and zero-width characters. A right-to-left override in the language could reorder the text next to it.
A line without the item's indent or the quote's > (a lazy line) stays text in the item or quote, as in GFM. A pipe line right after - item or > quote used to end it and start a table or paragraph below. A lazy line after a table inside an item or quote used to become a table row, and now ends the item or quote. A table inside an item or quote that is nested two containers deep (> - | a | over > |---|) still lets a lazy line after it stay in the outer quote.
A table whose header has no outer pipes now splits off from the paragraph above it (Here: then a | b over --|--), as in GFM. It used to stay one paragraph.
A line that starts with a pipe stays in the paragraph above it unless it starts a table (the next line is a delimiter row with as many cells), as in GFM. Pipe lines that are not a table used to become one paragraph each. While a pipe line is the last line and might still start a table, it is not shown until the next line arrives.
A line continues a list item only if it is indented to the item's content column, as in CommonMark (3 spaces under 1. , 4 under 10. , 2 under - ). Two spaces under 1. used to nest a list, a quote, or a paragraph inside the item.
A link title that contains an escaped quote ([a](/u "say \"hi\"")) is a link again. The whole link used to turn into text.
A highlight function that calls write no longer re-enters the renderer. Its text is added after the current update, and the block it was called for is highlighted once.
A link inside link text is now the link, and the outer brackets stay text, as in CommonMark. The outer link used to win and the inner one was flattened.
A table whose delimiter row has a different number of cells than the header is text, as in GFM. It used to render as a table with ragged rows.
A run of three or more tildes is text, as in GFM. ~~~x~~~ inside a paragraph used to show ~ around struck-out text.
A different bullet (-, +, *) or number delimiter (., )) now starts a new list, as in CommonMark. A list that switched markers used to render as one list.
Only 1. or 1) can interrupt a paragraph, as in CommonMark. A line such as 42. Nobody noticed. inside a paragraph used to start a numbered list.
An <img> in a block that is still open keeps its element while more text arrives, instead of being replaced on every update. Images no longer blink in Safari when they cannot be cached.
highlight is called once, with the whole code, for a fence that contains a line starting like a closing fence (a ```md fence with a ```js line inside). Streaming it one character at a time used to close the fence at the partial ```, highlight the truncated code, and reopen it. A closing fence on a line that is still arriving now waits for the end of the line (or end()) before the fence counts as closed.
import 'limmat/style.css' no longer fails with TS2882 under TypeScript 7, because the stylesheet export now ships a type declaration.