We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f153696 commit 71a8205Copy full SHA for 71a8205
src/index.ts
@@ -184,6 +184,9 @@ export default {
184
185
let markdown = result.data ?? '';
186
187
+ // Strip YAML frontmatter if present (generated by Workers AI toMarkdown)
188
+ markdown = markdown.replace(/^---\n[\s\S]*?\n---\n*/, '');
189
+
190
// Proxy WeChat images through R2 (if configured)
191
const rawHtmlForImages = isHtmlContent(contentType) ? new TextDecoder().decode(body) : '';
192
0 commit comments