diff --git a/src/routes/[rkey]/+page.server.ts b/src/routes/[rkey]/+page.server.ts index ba9e821..1e347ba 100644 --- a/src/routes/[rkey]/+page.server.ts +++ b/src/routes/[rkey]/+page.server.ts @@ -17,23 +17,23 @@ import type { Plugin } from "unified"; const customSchema = { ...defaultSchema, attributes: { - ...defaultSchema.attributes, - font: [...(defaultSchema.attributes?.font ?? []), 'color'], - blockquote: [ - ...(defaultSchema.attributes?.blockquote ?? []), - // bluesky - 'className', - 'dataBlueskyUri', - 'dataBlueskyCid', - // instagram - 'dataInstgrmCaptioned', - 'dataInstgrmPermalink', - 'dataInstgrmVersion' - ], - iframe: [ - 'width', 'height', 'title', 'frameborder', 'allow', 'referrerpolicy', 'allowfullscreen', 'style', 'seamless', - ['src', /https:\/\/(www.youtube.com|bandcamp.com)\/.*/] - ], + ...defaultSchema.attributes, + font: [...(defaultSchema.attributes?.font ?? []), 'color'], + blockquote: [ + ...(defaultSchema.attributes?.blockquote ?? []), + // bluesky + 'className', + 'dataBlueskyUri', + 'dataBlueskyCid', + // instagram + 'dataInstgrmCaptioned', + 'dataInstgrmPermalink', + 'dataInstgrmVersion' + ], + iframe: [ + 'width', 'height', 'title', 'frameborder', 'allow', 'referrerpolicy', 'allowfullscreen', 'style', 'seamless', + ['src', /https:\/\/(www.youtube.com|bandcamp.com)\/.*/] + ], section: ['dataFootnotes', 'className'] }, tagNames: [...(defaultSchema.tagNames ?? []), 'font', 'mark', 'iframe', 'section'] diff --git a/tailwind.config.ts b/tailwind.config.ts index 76532f8..0604127 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -16,6 +16,12 @@ export default { }, '[type="checkbox"]': { 'border-radius': '5px' + }, + 'img': { + 'border-style': 'solid', + 'border-color': 'gray', + 'border-width': '1px', + 'border-radius': '1em' } }, },