Skip to content

fix(docs): avoid regex tag stripping in toc#12

Merged
vincentkoc merged 1 commit intomainfrom
fix/codeql-docs-heading-text
May 6, 2026
Merged

fix(docs): avoid regex tag stripping in toc#12
vincentkoc merged 1 commit intomainfrom
fix/codeql-docs-heading-text

Conversation

@vincentkoc
Copy link
Copy Markdown
Member

Summary

  • replace TOC tag-stripping regex with a small text scanner for generated heading fragments
  • decode basic HTML entities after text extraction so rendered TOC labels stay readable
  • addresses the open CodeQL js/incomplete-multi-character-sanitization alert in scripts/build-docs-site.mjs

Verification

  • node --check scripts/build-docs-site.mjs
  • node scripts/build-docs-site.mjs
  • go test ./...

@vincentkoc vincentkoc merged commit fdc3f74 into main May 6, 2026
8 checks passed
@vincentkoc vincentkoc deleted the fix/codeql-docs-heading-text branch May 6, 2026 09:10
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