Skip to content

Fix Markdown navigation around comments and code examples - #16

Open
NoxGarnet wants to merge 1 commit into
mainfrom
fix/markdown-navigation-20261023
Open

NoxGarnet wants to merge 1 commit into
mainfrom
fix/markdown-navigation-20261023

Conversation

@NoxGarnet

@NoxGarnet NoxGarnet commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

A malformed Markdown URL could abort project navigation, while links and filenames inside HTML comments or code examples could appear as real project/material candidates. Project and workspace navigation now share offset-preserving lexical helpers, so visible links remain navigable and hidden examples are excluded.

Changes

  • Ignore HTML comments, fenced examples, inline-code links and escaped link syntax; handle unclosed or truncated trailing comments/fences and mixed delimiter widths.
  • Preserve source offsets, CRLF/Unicode line positions and existing single-backtick material-path behavior. Comment markers inside code remain literal, and fences inside comments do not hide subsequent visible links.
  • Report malformed URLs as warnings without interrupting other project materials.
  • Add focused regression coverage, synchronize the project/workspace guides, and correct three relative links in the archived release-candidate notes.

The branch starts from current main, which already contains PR #15. This PR contains only the ten navigation, test and documentation files; it does not add execution features or change CSV calculations.

Validation

  • Current staged source: 31 targeted tests, 28 passed and 3 skipped because the local sandbox cannot create symlinks/junctions; no failures or errors.
  • Both navigation CLI smoke checks passed in standard-library-only mode (python -S), with unchanged synthetic inputs and sources.
  • 245 relative documentation links checked with no missing targets; changed Python files parsed, bounded content checks and staged whitespace checks passed.
  • Final Windows Python 3.14 CI passed on commit 10538d5 for both pull_request and push: each ran all 494 tests with no failures/errors or skips, validated 24 JSON schemas and passed the standard-library discovery/validation and read-only source checks.

Navigation remains a bounded lexical projection of explicit entries; it does not read target materials, verify research claims or implement a full Markdown renderer. No real solver or external data service was used for this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant