Fix word break and blockquote text color for markdown (#1913)

This commit is contained in:
Zane
2025-03-28 14:35:00 -07:00
committed by GitHub
parent 5668fcd207
commit 165310bc72
2 changed files with 8 additions and 1 deletions

View File

@@ -86,10 +86,11 @@ export default function MarkdownContent({ content, className = '' }: MarkdownCon
<ReactMarkdown
remarkPlugins={[remarkGfm]}
rehypePlugins={[rehypeinlineCodeProperty, rehypeRaw]}
className={`prose prose-xs dark:prose-invert w-full max-w-full break-words
className={`prose prose-xs dark:prose-invert w-full max-w-full word-break
prose-pre:p-0 prose-pre:m-0 !p-0
prose-code:break-all prose-code:whitespace-pre-wrap
prose-table:table prose-table:w-full
prose-blockquote:text-inherit
prose-td:border prose-td:border-borderSubtle prose-td:p-2
prose-th:border prose-th:border-borderSubtle prose-th:p-2
prose-thead:bg-bgSubtle

View File

@@ -152,6 +152,12 @@
}
@layer components {
/* Tailwind doesn't offer all three with break-words */
.word-break {
overflow-wrap: break-word;
word-wrap: break-word;
word-break: break-word;
}
.titlebar-drag-region {
-webkit-app-region: drag;
height: 32px;