Repository navigation
Preserve untouched tables and add aligned source formatting - #78
Closed
BinaryOutlook wants to merge 3 commits into
Closed
BinaryOutlook wants to merge 3 commits into
BinaryOutlook wants to merge 3 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.
A small visual edit currently reconstructs every table in the document, creating formatting-only diffs even when those tables were untouched. Preserve each recognized table's source unless its cells, structure, or column alignment change. Editing a paragraph now leaves all table source intact; editing table A formats A while retaining table B verbatim.
Add
binary-markdown.tableSourceFormatwith Aligned as the default and Compact (Legacy) as the compatibility option in VS Code and desktop Preferences. The preference applies to new or modified tables. Live setting changes preserve the document, selection, and undo history. Localize the setting in all seven supported languages and document the behavior.The source is retained on each table node and compared with its current serialized cell data. Source-mode edits, undo/redo, and external formatting-only updates refresh that baseline. Export preparation excludes the retained-source metadata. Empty-cell placeholders are distinguished from authored line breaks, and header-only alignment is retained.
Validation on Node 24.21.0:
Scope: preservation applies to tables supported by the existing parser. Other Markdown normalization remains unchanged, and widening a column can still reformat the edited table. Reduced diff noise does not establish a measured Git-storage reduction. Native Electron and cross-platform installed-extension validation are not claimed by the local checks.
Based on refreshed
mainat41ea238a99aea72b197fa33dc1001bd9ef09a0e5; implementation and testing used a dedicated worktree.