Skip to content

fix(docs): preserve block replacement structure#842

Merged
steipete merged 1 commit into
mainfrom
fix/docs-markdown-structure-838
Jun 18, 2026
Merged

fix(docs): preserve block replacement structure#842
steipete merged 1 commit into
mainfrom
fix/docs-markdown-structure-838

Conversation

@steipete

Copy link
Copy Markdown
Collaborator

Summary

  • preserve the matched paragraph structure on the first plain paragraph of block Markdown replacements
  • continue resetting later paragraphs and explicitly structured Markdown
  • add heading and list regression coverage

Fixes #838.

Testing

  • go test ./internal/cmd -run 'TestDocsFindReplace_Markdown(BlockPreservesFirstPlainParagraphStyle|ResetsInheritedParagraphStyle|CodeBlockStartsFreshParagraphWhenInline)$' -count=1
  • make ci
  • autoreview: clean
  • live Google Docs proof: original heading style and list ID preserved on the first replacement paragraph; subsequent paragraphs reset; scratch document trashed

@steipete
steipete merged commit c02fdf7 into main Jun 18, 2026
7 of 9 checks passed
@steipete
steipete deleted the fix/docs-markdown-structure-838 branch June 18, 2026 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant