diff --git a/src/components/Markdown.tsx b/src/components/Markdown.tsx index 9bfbe562..564f689c 100644 --- a/src/components/Markdown.tsx +++ b/src/components/Markdown.tsx @@ -20,7 +20,7 @@ const parseMarkdown = (raw: string) => { .use(remarkParse) .use(remarkGfm) .use(remarkMath) - .use(remarkRehype) + .use(remarkRehype, { allowDangerousHtml: true }) .use(rehypePrism, { ignoreMissing: true, }) diff --git a/src/components/StreamableText.tsx b/src/components/StreamableText.tsx index 02a4bec6..73619dd5 100644 --- a/src/components/StreamableText.tsx +++ b/src/components/StreamableText.tsx @@ -46,7 +46,7 @@ export default (props: Props) => { return ( diff --git a/unocss.config.ts b/unocss.config.ts index 517f149d..892554b3 100644 --- a/unocss.config.ts +++ b/unocss.config.ts @@ -17,6 +17,12 @@ export default defineConfig({ presetIcons(), presetTypography({ cssExtend: { + '*:first-child': { + 'margin-top': 0, + }, + '*:last-child': { + 'margin-bottom': 0, + }, 'h1': { 'font-size': '1.25em', 'margin': '1rem 0',