Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

docs(chat): note urlTransform is the only href/src protocol check

Manas Raghuwanshidf8a02ab6d9d
diff --git a/apps/screenpipe-app-tauri/components/chat/markdown-block.tsx b/apps/screenpipe-app-tauri/components/chat/markdown-block.tsx
index 3e8936cbc..00442537c 100644
--- a/apps/screenpipe-app-tauri/components/chat/markdown-block.tsx
+++ b/apps/screenpipe-app-tauri/components/chat/markdown-block.tsx
@@ -84,7 +84,11 @@ const chatRehypePlugins: NonNullable<ReactMarkdownOptions["rehypePlugins"]> = [
export interface MarkdownBlockOptions {
/** Extra parsing passes layered onto the main Chat Markdown pipeline. */
additionalRemarkPlugins?: ReactMarkdownOptions["remarkPlugins"];
- /** Extend the main Chat URL allowlist for a bounded embedded surface. */
+ /**
+ * Extend the main Chat URL allowlist for a bounded embedded surface. This is
+ * the only protocol check on href/src (the sanitizer defers to it), so it
+ * must still fall back to `chatUrlTransform` or react-markdown's default.
+ */
urlTransform?: ReactMarkdownOptions["urlTransform"];
/** Return a node for links owned by the embedding surface; undefined falls back to Chat. */
renderLink?: (input: {