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 01ca4c5 commit 27ef171Copy full SHA for 27ef171
src/app/feed/route.ts
@@ -12,7 +12,8 @@ export const revalidate = 60;
12
// Convert markdown to HTML for RSS feeds
13
function markdownToHtml(markdown: string): string {
14
try {
15
- return marked.parse(markdown);
+ // Use marked.parse with synchronous option to ensure it returns a string
16
+ return marked.parse(markdown, { async: false }) as string;
17
} catch (error) {
18
console.warn("Failed to convert markdown to HTML:", error);
19
return markdown;
0 commit comments