BrowserExtension returns mixed HTML/Markdown and misses visible content
Description
API: https://developers.raycast.com/api-reference/browser-extension#browserextension.getcontent
BrowserExtension.getContent({ format: "markdown" }) does not produce a faithful Markdown representation of the visible page: some important sections are missing, and the output is a mix of Markdown and raw HTML.
In contrast, format: "html" and format: "text" include the full content for the same active tab.
Note: the same content that goes missing here is visible and correctly formatted when using the browser’s Reader Mode (e.g. Brave Reader Mode), which suggests this is not a page issue but an extraction/conversion issue in Raycast.
Example :
Active tab URL: https://developers.raycast.com/misc/changelog or https://opencode.ai/changelog
Symptoms with format: "markdown":
- Some sections visible in the browser or in the browser's Reader Mode do not appear in the output : the version title for example "1.103.0 - 2025-09-15" or some entire paragraph in the second link)
- 99% of the output remain raw HTML (
<h3>,<p>,<li>, etc.) instead of being converted to Markdown
Environment :
- Raycast version: 1.104.1
- Browser: Chrome and Brave
- Raycast Browser Extension version: 1.2.0
Steps To Reproduce
- Open https://developers.raycast.com/misc/changelog or https://opencode.ai/changelog in your browser (with the Raycast Browser Extension installed).
- Run a Raycast command executing the code below.
- Observe that the
format: "markdown"output is incomplete and contains raw HTML.
import { BrowserExtension, Detail } from "@raycast/api";
import { useEffect, useState } from "react";
export default function Command() {
const [markdown, setMarkdown] = useState<string | null>(null);
const [isLoading, setIsLoading] = useState(true);
useEffect(() => {
BrowserExtension.getContent({ format: "markdown" })
.then((content) => {
setMarkdown(content);
})
.catch((e) => {
setMarkdown(e instanceof Error ? e.message : String(e));
})
.finally(() => {
setIsLoading(false);
});
}, []);
return <Detail isLoading={isLoading} markdown={isLoading ? "Loading..." : (markdown ?? "No content.")} />;
}
Current Behaviour
- Missing some part of the content (only with
format: "markdown") - Mixed Markdown + raw HTML in the returned string
Expected Behaviour
format: "markdown"should include the same “visible/relevant” content asformat: "text"orformat: "html"but in Markdown.- Output should be mostly Markdown (or the behavior should be documented if embedding raw HTML is intended)
- If no solution is possible, markdown should not be the default format for the
{browser-tab}dynamic placeholder (https://manual.raycast.com/dynamic-placeholders#Browser%20Tab%20Format) because it is missing important content required for the command to work properly.