What happens
Replacing inline text inside an existing paragraph with docs find-replace --format markdown inserts an extra empty paragraph after the edited paragraph. Repeated markdown replacements on the same area accumulate double blank lines.
Repro
Start with a paragraph followed by a single blank line, then a next paragraph:
First paragraph ending here.
Second paragraph.
gog docs find-replace <id> "ending here." "ending here. Plus more." --format markdown
Result: the first paragraph is now followed by TWO blank paragraphs instead of one.
Expected
Replacing inline text within a paragraph should not introduce paragraph breaks — the replacement should stay within the target paragraph, leaving surrounding blank lines unchanged.
Note
The default --format plain path does not appear to add the empty paragraph; this is specific to --format markdown.
Environment
gog v0.23.0 (and current main).
What happens
Replacing inline text inside an existing paragraph with
docs find-replace --format markdowninserts an extra empty paragraph after the edited paragraph. Repeated markdown replacements on the same area accumulate double blank lines.Repro
Start with a paragraph followed by a single blank line, then a next paragraph:
Result: the first paragraph is now followed by TWO blank paragraphs instead of one.
Expected
Replacing inline text within a paragraph should not introduce paragraph breaks — the replacement should stay within the target paragraph, leaving surrounding blank lines unchanged.
Note
The default
--format plainpath does not appear to add the empty paragraph; this is specific to--format markdown.Environment
gogv0.23.0 (and currentmain).