Skip to content

fix(lint): handle multi-line tags in lint-mdx attribute checks - #1799

Closed
doresa0 wants to merge 1 commit into
base:masterfrom
doresa0:fix/lint-mdx-multiline-tags
Closed

fix(lint): handle multi-line tags in lint-mdx attribute checks#1799
doresa0 wants to merge 1 commit into
base:masterfrom
doresa0:fix/lint-mdx-multiline-tags

Conversation

@doresa0

@doresa0 doresa0 commented Aug 11, 2026

Copy link
Copy Markdown

Summary

lint-mdx.js only inspected the first line of an opening tag, so multi-line <img> and <Card> attributes were skipped. Accumulate lines until the tag closes.

Testing

  • Fixture MDX: multi-line img without alt warns; with alt does not; multi-line Card without title warns
  • node scripts/lint-mdx.js docs/_lint_fixtures

Closes #1792
Closes #1795

Accumulate opening-tag lines so multi-line <img> alt checks and Card/CardGroup required attributes are not skipped.

Closes base#1792
Closes base#1795
@cb-heimdall

Copy link
Copy Markdown
Collaborator

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/2
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 1
Sum 2

@doresa0 doresa0 closed this Aug 12, 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

2 participants