Jot 2.3 added a Markdown editor. Open a jot and the window grows into an editor beside the list. It styles Markdown as you type, and the ** , # and link brackets disappear until you need them. Any .md file in Finder can open in it too.
I set two rules before writing any of it:
The file holds exactly what you typed. Styling never rewrites a byte.
Nothing on the line moves when the caret arrives, except the thing you are editing.
This post is how both rules shape the code. The styling is one Rust file of about 650 lines, tests included.
Styles are byte ranges, not a document model
Most rich editors parse Markdown into a tree, let you edit the tree, and write Markdown back out. That round trip is where your file gets rewritten: * becomes _ , list markers get normalised, lines re-wrap. Jot's notes are also read by Obsidian, Vim, scripts and coding agents over MCP, so every rewrite would show up as a diff nobody made.
So the editor never holds a tree. The text field holds the plain text.…