Skip to content
This repository was archived by the owner on Apr 27, 2026. It is now read-only.

fix: prevent false Prism import from set:html content - #170

Merged
jp-knj merged 1 commit into
mainfrom
fix/storyblok-kbd-paragraph-splitting
Feb 1, 2026
Merged

jp-knj merged 1 commit into
mainfrom
fix/storyblok-kbd-paragraph-splitting

Conversation

@jp-knj

@jp-knj jp-knj commented Jan 31, 2026

Copy link
Copy Markdown
Member

Summary

  • Add stripSetHtmlContent() to prevent false component matches inside set:html string content (e.g., <Prism> appearing in code block output)
  • Remove Prism from the astro built-in component library since it is not a built-in Astro component
  • Update tests to reflect Prism removal

Test plan

  • Existing inject-components tests updated and passing
  • Verify no regressions with pnpm --dir packages/astro-markflow test

🤖 Generated with Claude Code

…rism from astro library

Strip set:html string content before scanning for component usage to avoid
false import injection (e.g., Prism appearing inside code block content).
Remove Prism from the astro built-in library since it is not a built-in
Astro component.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@claude

claude Bot commented Jan 31, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@jp-knj
jp-knj merged commit aa29b45 into main Feb 1, 2026
17 of 18 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant