Skip to content

Conversation

@samuelstroschein
Copy link
Member

@samuelstroschein samuelstroschein commented Jan 12, 2026

Note

  • Embed/rendering: <markdown-wc-embed> now renders in light DOM; inherits mwc-base from ancestor comments; minor URL resolution tweak; added jsdom tests.
  • Styles: Replaces and scopes default.css to .markdown-wc-body with VitePress-like markdown styles and copy-button hooks.
  • Doc elements: Adds doc-card and doc-columns components; removes obsolete elements (accordion, callout, comments, copy, feature(s), figure, header, hero, icon, link(s), pricing, slider).
  • Docs site: New website/ (TanStack React Start + Vite) to render README and doc-elements; Cloudflare Wrangler config and ignore file included.
  • CI/Versioning: Grants workflow permissions and refines versioning workflow; updates changesets and lockfile paths.

Written by Cursor Bugbot for commit d7e3f4d. This will update automatically on new commits. Configure here.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 12, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
⛔ Deployment terminated
View logs
markdown-wc d7e3f4d Commit Preview URL

Branch Preview URL
Jan 12 2026, 01:06 AM

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f829f6ce0f

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines 52 to 54
protected override createRenderRoot() {
return this
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve base inheritance for nested embeds

Switching to light DOM rendering via createRenderRoot() means getRootNode() now returns the document, but inheritBaseFromParent() still scans root.childNodes for the <!--mwc-base=...--> comment (same file, inheritBaseFromParent). That comment is inserted inside the parent <markdown-wc-embed> element, not at the document root, so nested embeds no longer inherit base. As a result, relative src/import URLs inside nested embeds resolve against the document base instead of the parent’s base (e.g., parent base="/docs" + child src="./intro.md" loads /intro.md instead of /docs/intro.md). Consider searching parent nodes or propagating base another way when using light DOM.

Useful? React with 👍 / 👎.

if (this.arrow !== undefined && this.arrow !== null) {
return this.arrow
}
return this.isExternalLink()
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Arrow default behavior for external links never activates

Medium Severity

The shouldShowArrow() method never reaches its fallback logic for external links. The arrow property is initialized to false on line 109, so the condition this.arrow !== undefined && this.arrow !== null on line 128 always evaluates to true (since false is neither undefined nor null). This means the method always returns false when the attribute isn't explicitly set, instead of returning this.isExternalLink() as the fallback. The documentation states arrows should default to showing for external links, but this implementation prevents that behavior.

Additional Locations (1)

Fix in Cursor Fix in Web

@samuelstroschein samuelstroschein merged commit e58890d into main Jan 12, 2026
2 of 3 checks passed
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.

2 participants