No description
Find a file
nobody 82bf67fc38
fix: map char level ranges to prosemirror positions
ProseMirror's document model is a tree structure where positions are
calculated by traversing nodes, accounting for structural elements
(opening/closing tags of nodes like paragraphs, lists, etc.). A position
in ProseMirror is not "character index N". Structual boundaries like
"start of paragraph" also get their own index. A document with two
paragraphs "ab" and "cd" has positions:

  0   1 2 3   4   5 6 7   8
  <p> a b </p><p> c d </p>

So when I serialize a ProseMirror document to plain text for external
processing:

   01 234
  "ab\ncd"

I need to save this mapping information so when the external system
says "there's something interesting at characters [3,4]", I can map that
back to ProseMirror positions to do something useful: highlighting,
applying marks, or making selections.

fix: measure site visits
2025-12-03 11:08:39 -08:00
api fix: port 5000 conflicts with AirPlay on macOS 2025-12-03 11:08:38 -08:00
frontend fix: map char level ranges to prosemirror positions 2025-12-03 11:08:39 -08:00
CLAUDE.md feat: create deployment scripts 2025-11-02 14:16:56 -08:00