trilium/patches
BeatLink 5505053c6b fix(export): read an inline tag's name up to any whitespace
The HTML export pretty-prints with the `html` package, a 2013 fork of the
js-beautifier. When its 70-column wrap falls inside an inline tag it
emits a newline there (`<code\n  spellcheck="false">`), and the tag-name
check then does `indexOf(' ')`, reads the name as `code\n`, misses the
inline-tag list and formats the tag as a block: a newline before it and
the space after `</code>` dropped. The bundled help had 150 such joins
("dateModifiedor", "localhost:8080is completed").

A pnpm patch changes the lookup to `search(/\s/)`, so the name is read up
to any whitespace and the tag keeps its inline treatment. The line break
inside the tag is left as it was; taking it out as well would move wrap
points across most of the help pages for no gain in readability.

A spec formats a paragraph whose wrap point lands inside a `<code>` and
checks the boundary survives; it fails on the unpatched package.

(cherry picked from commit 8cf4063fcd47cf1ca6a0438aa1fe626a2ebc532c)
2026-09-09 09:14:21 -05:00
..
@excalidraw__excalidraw@0.18.1.patch fix(canvas): stop flowchart/zoom-to-fit collapsing zoom to 10% (#10493) 2026-07-13 09:52:50 +03:00
html@1.0.0.patch fix(export): read an inline tag's name up to any whitespace 2026-09-09 09:14:21 -05:00
pnpm-PATH-reduction.patch chore(nix): adapt to pnpm 11 2026-05-19 18:10:40 +03:00