Repository navigation
fix(rules): read @graph ItemList in content/article-toc (#339) - #609
Conversation
|
Reviewed the diff and
Overall this looks good to merge. |
79bba99 to
f2c3b1f
Compare
|
Reviewed the diff. I found no blocking issues.
🤖 Generated with Claude Code |
Signed-off-by: Nik Cubrilovic <[email protected]>
f2c3b1f to
776959a
Compare
|
Review of #609: the fix is correct and well scoped.
|
|
Review of #609: the change is small and the fix is correct. It reuses the existing
Tests cover the |
Closes #339
content/article-tocparsed each JSON-LD script with a bareJSON.parseand looked only at its top level, so an ItemList inside a Yoast / Rank Math@graphwrapper was never seen. It now usesflattenJsonLdNodesper script, as the schema rules do (#317). Unparseable JSON is still skipped.Tests:
packages/rules/tests/article-toc.test.ts. The graph case fails before the fix; the flat-vs-graph parity and unparseable-input cases pass both before and after. Repo-wide grep finds no remainingArray.isArray(data) ? data : [data]inpackages/rules/src.No rule doc page exists for this rule, so no docs change. Agent skill change needed: no.