Repository navigation
Fix phantom blank lines in Markdown rendering and editing - #79
Closed
BinaryOutlook wants to merge 2 commits into
Closed
BinaryOutlook wants to merge 2 commits into
BinaryOutlook wants to merge 2 commits into
Conversation
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Blank Markdown separators were rendered as editable empty paragraphs, and ordinary source wraps became separate paragraphs. The example in #16 therefore displayed 13 blocks instead of its seven content blocks. This change renders semantic Markdown blocks and keeps source spacing separately, so additional separators and a final newline no longer create visible rows.
In ordinary prose, Enter now creates a paragraph and Shift+Enter creates an explicit hard line break. Saved paragraph boundaries survive reopening.
Changes
Related to #16. This addresses its phantom-line and explicit-alignment concerns. The broader Primer typography, shared theme spacing and page-padding changes remain separate work; full CommonMark/GFM inline conformance is also outside this PR.
Validation
CI run 36221235399 passed on commit
f6a7e3989869e353754f5c11078fc12ad9643073: candidate build, Ubuntu, Windows, macOS, minimum-supported VS Code, and the final VSIX validation gate.The CI follow-up normalizes Windows clipboard line endings in one assertion and waits for the pending typing notification before checking that theme changes emit no edits. Both affected browser suites also passed five local repetitions: 150 tests passed, with no retries.
Local validation used Node 24.21.0 on macOS ARM64:
Native validation used a local development VSIX built before the commit, with matching runtime source; it was not a release candidate. Windows/Linux native validation, Electron runtime checks and comparisons in other Markdown readers were not performed locally. Cross-platform validation of the published commit passed in the CI run linked above.