mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
feat: add markdown parsing and rendering support
fix: resolve lint issues chore: npm run format - Added `parseMarkdown` function to handle markdown content with DOMPurify for sanitization. - Updated `+page.svelte` to render markdown content and handle media loading. - Introduced new styles for markdown elements in the Svelte component. - Enhanced media placeholders for external content with privacy warnings.
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
"@sveltejs/kit": "^2.50.0",
|
||||
"@sveltejs/vite-plugin-svelte": "^6.2.1",
|
||||
"@tailwindcss/vite": "^4.1.17",
|
||||
"@types/jsdom": "^27.0.0",
|
||||
"@types/node": "^22",
|
||||
"@types/qrcode": "^1.5.6",
|
||||
"eslint": "^9.39.1",
|
||||
@@ -39,8 +40,11 @@
|
||||
"dependencies": {
|
||||
"@lucide/svelte": "^0.562.0",
|
||||
"@sveltejs/adapter-node": "^5.4.0",
|
||||
"dompurify": "^3.3.1",
|
||||
"hash-wasm": "^4.12.0",
|
||||
"highlight.js": "^11.8.0",
|
||||
"jsdom": "^27.4.0",
|
||||
"marked": "^17.0.1",
|
||||
"qrcode": "^1.5.4"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user