You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Saving a Markdown file removes its final newline #3780
I understand this is a bug report and questions should be posted in the Community Discussions
I searched issues and couldn’t find anything (or linked relevant results below)
Bug Description
Saving a Markdown file removes its final newline. Cause: packages/web-pkg/src/editor/composables/strategies/markdown.ts:52-55 returns the serializer output unchanged.
Reproduction Steps
Open a Markdown file ending with a newline, edit, save.
Expected Outcome
The final newline is kept.
Actual Outcome
The file is saved without it, so every save adds a diff.
Activity
jnweiger commentedon Oct 14, 2026
Seen in 8.1.0
Reproducable with .md files, but it does not happen with .txt .text or .csv files, there the trailing newline is preserved as expected.
AlexAndBear commentedon Oct 14, 2026
Yes, this issue is about markdown files.