Repository navigation
Support standalone HTML section anchors without losing source - #100
Draft
BinaryOutlook wants to merge 2 commits into
Draft
BinaryOutlook wants to merge 2 commits into
BinaryOutlook wants to merge 2 commits into
Conversation
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.
Standalone empty HTML anchors currently appear as literal text, and fragment navigation searches headings only. This makes legacy section links fail after a heading is renamed.
Recognize restricted, quoted
id/nameanchors as invisible document metadata. Resolve their fragments using editor-scoped target comparisons. Preserve exact anchor source through saves and Undo/Redo; visual deletion or replacement moves hidden anchors before the resulting content rather than removing them. HTML export emits inert targets through the existing sanitizer. Arbitrary HTML remains disabled; inline and nested anchors remain literal source.Reproduction:
Added parser tests, ten browser regressions, an installed-VSIX native suite, and maintained usage/validation documentation. Examples and fixtures are synthetic.
Validation:
relattribute. The reviewed test-only correction validates that attribute; hosted validation for the corrected revision remains in progress.Related: #16. No package version change, merge, or release publication.
Local development package identity: package version
0.4.1, sourcec1ad0ade36dfbbe6668de063a87eef1db22f8e08, clean source tree, SHA-256f0911cbdecb4cf7f4b141636e74d3fc107aa4f2f7858f88b6b5887c3e470ddde. This is a development snapshot, not a release candidate.