fix: prevent highlighted text from appearing italicized

- Add explicit styles for mark elements
- Force normal font-style with \!important
- Add subtle padding and border-radius for highlights
- Ensure text color inheritance for proper contrast

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Justin Edmund 2025-06-26 12:02:30 -04:00
parent 15ce9caae9
commit e8a965650b

View file

@ -330,6 +330,19 @@ input[type='checkbox'] {
}
}
/* Highlight Styles */
.tiptap mark {
font-style: normal !important;
padding: 0.125rem 0;
border-radius: 0.25rem;
text-decoration: none;
}
.tiptap mark[data-color] {
background-color: var(--highlight-color);
color: inherit;
}
/* Math Equations (KaTeX) */
.katex:hover {
background-color: var(--code-bg);