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:
@@ -252,7 +252,10 @@
|
||||
? estimateEncryptedSize(content + (e.data ?? ''))
|
||||
: new TextEncoder().encode(content + (e.data ?? '')).length;
|
||||
|
||||
if (futureSize > data.options.maxPasteSize && (e.data?.length ?? Number.MAX_SAFE_INTEGER < content.length)) {
|
||||
if (
|
||||
futureSize > data.options.maxPasteSize &&
|
||||
(e.data?.length ?? Number.MAX_SAFE_INTEGER < content.length)
|
||||
) {
|
||||
e.preventDefault();
|
||||
}
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user