Skip to content

Lint: links inside code are examples, not links (0.4.1) - #8

Merged
moderniselife merged 1 commit into
mainfrom
fix/lint-code-spans
Nov 23, 2026
Merged

moderniselife merged 1 commit into
mainfrom
fix/lint-code-spans

Conversation

@moderniselife

Copy link
Copy Markdown
Owner

Why

The record READMEs that come with every brain show [[type/id]] inside code formatting as an example. A freshly created brain therefore reported broken links in its own scaffold.

What

  • Lint, and the backlinks in record_get, now ignore [[…]] inside fenced code blocks and inline code.
  • Version 0.4.1.

Testing

  • Extended the lint test with a note that has example links in code and checks that the scaffold READMEs lint clean. It fails without the fix and passes with it.
  • npm test: 51/51 pass.

🤖 Generated with Claude Code

The record READMEs that come with every brain show `[[type/id]]` as an
example, so a fresh brain reported broken links in its own scaffold. Lint
and record_get backlinks now skip fenced code blocks and inline code.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@moderniselife
moderniselife merged commit 64d9350 into main Nov 23, 2026
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