NO-ISSUE Merged from release/0.2 #75

Merged
squid merged 3 commits from release/0.2 into main 2025-07-26 01:03:43 +08:00
2 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{ {
"name": "squidspirit-blog", "name": "squidspirit-blog",
"private": true, "private": true,
"version": "0.2.0", "version": "0.2.1",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite dev", "dev": "vite dev",

View File

@ -5,7 +5,9 @@
const { html }: { html: string } = $props(); const { html }: { html: string } = $props();
const sanitizedHtml = $derived(sanitizeHtml(html)); const sanitizedHtml = $derived(
sanitizeHtml(html, { allowedTags: sanitizeHtml.defaults.allowedTags.concat(['img']) })
);
</script> </script>
{@html sanitizedHtml} {@html sanitizedHtml}