mirror of
https://github.com/zadam/trilium.git
synced 2026-09-12 11:40:19 +05:00
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)
|
||
|---|---|---|
| .. | ||
| @excalidraw__excalidraw@0.18.1.patch | ||
| html@1.0.0.patch | ||
| pnpm-PATH-reduction.patch | ||