Skip to content

Replace text inside a draft field - #59

Merged
peterbjohnson merged 3 commits into
devfrom
wb/t34
Sep 20, 2026
Merged

peterbjohnson merged 3 commits into
devfrom
wb/t34

Conversation

@peterbjohnson

Copy link
Copy Markdown
Member

Some faults can only be fixed by changing text: OCR drops a brace and KaTeX rejects the field. Layer 4 is the smallest possible edit. Add field replace ID OLD NEW: OLD must occur exactly once in the field or the command is refused saying how many times it occurs; --regex is an option. The field is flagged edited with the author, and its original range is kept in the provenance so the change can be shown against the source.

Done when the worked example's fix (\mathrm{m/s$ to \mathrm{m/s}$) is one command, a non-unique OLD is refused, and replay reproduces the edit.


Workbench ticket t34.

@peterbjohnson
peterbjohnson merged commit bea26a7 into dev Sep 20, 2026
2 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant