mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-12-05 11:15:01 +03:00
Decode every WHATWG HTML named character reference in pasted HTML. The table is one sorted string of `\0<name>;<value>` records, and a lookup bisects it by byte position. `⟨` and `⟩` now give U+27E8 and U+27E9. Two-code-point references such as `≂̸` decode. The 106 legacy names also decode without `;` when the next byte is not `=` or an ASCII letter or digit, so `?a=1©=2` stays as typed. Numeric references in U+0080..=U+009F use the Windows-1252 values. Zero, surrogate and out-of-range references give U+FFFD. The `/callout` command keeps its block, as `calloutSlashMenuConfig` does. Thus an empty paragraph, bulleted item or checked to-do stays before the new callout. One undo removes the callout and restores the typed command. The `Frame` and `Mind Map` commands place their new target with the `findSpace` search of `0.27.5`. A frame starts at `[0,0,1600,900]` with 20 px padding. A mind map starts at `[0,0,200,200]` with 150 px padding. The target moves right only past the canvas content that it intersects. A new frame is named `Frame <n>`, where n is the frame count plus one. The mind map nodes use the `0.27.5` sizes, positions and labels.