Skip to content

Commit c1a0078

Browse files
committed
chore: replace docen with turndown and unify HTTPError handling
- Replace docen with turndown for HTML-to-markdown conversion in reader route - Convert throw new Error() to HTTPError({ status: 502 }) in font CSS generation and Google Fonts provider for consistent error responses
1 parent d969e64 commit c1a0078

5 files changed

Lines changed: 42 additions & 1186 deletions

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,15 @@
3939
"devDependencies": {
4040
"@mozilla/readability": "0.6.0",
4141
"@types/node": "25.6.0",
42+
"@types/turndown": "5.0.6",
4243
"@vercel/og": "0.11.1",
4344
"cheerio": "1.2.0",
44-
"docen": "0.0.15",
4545
"ioredis": "5.10.1",
4646
"ipx": "4.0.0-alpha.1",
4747
"linkedom": "0.18.12",
4848
"nitro": "3.0.260311-beta",
4949
"playwright": "1.59.1",
50+
"turndown": "7.2.4",
5051
"vite-plus": "0.1.16"
5152
}
5253
}

0 commit comments

Comments
 (0)