Skip to content

fix(docs): preserve inline replacement paragraphs#740

Merged
steipete merged 1 commit into
mainfrom
fix/docs-find-replace-paragraph-736
Jun 11, 2026
Merged

fix(docs): preserve inline replacement paragraphs#740
steipete merged 1 commit into
mainfrom
fix/docs-find-replace-paragraph-736

Conversation

@steipete

Copy link
Copy Markdown
Collaborator

Summary

  • keep single-paragraph Markdown find-replace fragments inside the existing paragraph
  • preserve explicit terminal newlines and block Markdown behavior
  • add regression coverage for inline and explicit-newline replacements

Verification

  • focused Docs find-replace tests
  • autoreview clean
  • make ci
  • live disposable Google Doc: two successive Markdown replacements produced exact paragraph spacing on raw readback; document trashed afterward

Closes #736

Thanks @sebsnyk.

@steipete
steipete merged commit d6e7a81 into main Jun 11, 2026
9 checks passed
@steipete
steipete deleted the fix/docs-find-replace-paragraph-736 branch June 11, 2026 01:31
@steipete

Copy link
Copy Markdown
Collaborator Author

Landed in d6e7a81.

Proof:

  • focused find-replace regression tests passed
  • autoreview clean
  • full local make ci passed
  • exact-head GitHub CI green on Linux, macOS, Windows, worker, and Docker
  • live disposable Google Doc verified two successive Markdown replacements kept exact inline paragraph spacing; test document trashed

Thanks @sebsnyk.

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.

bug(docs find-replace --format markdown): replacement appends a trailing empty paragraph

1 participant