Skip to content

feat!: default mounts to read-only, add --write to opt in - #2

Merged
harehare merged 2 commits into
mainfrom
feat/readonly-by-default
Aug 26, 2026
Merged

feat!: default mounts to read-only, add --write to opt in #2
harehare merged 2 commits into
mainfrom
feat/readonly-by-default

Conversation

@harehare

Copy link
Copy Markdown
Owner

No description provided.

…ross unrelated edits

mq-markdown represents list items, table rows, reference-style
definitions, and even a paragraph's inline runs (bold/links/plain text)
as flat sibling nodes rather than nested children, and infers their
grouping from position line-gaps. Renumbering every top-level node's
position uniformly on each edit therefore corrupted all of those
constructs anywhere in the document, not just the section being
edited. Splicing now touches positions only at the two seams around
the edited range, leaving untouched gaps intact.
Mounting no longer risks touching the source Markdown file(s) unless
explicitly allowed. Replaces --readonly with --write (default false =
read-only); pass --write once edits through the mount are meant to be
persisted. Updates the README and regenerates the demo GIF to show
--write on the write-path example.

BREAKING CHANGE: mounts are now read-only unless --write is passed;
--readonly has been removed.
@harehare
harehare merged commit 1626429 into main Aug 26, 2026
3 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