Override block display styling of links by Katex in chat messages

This happens sometimes when LLM respons contains [\[1\]] kind of links
as reference. Both markdown-it and katex apply styling.

Katex's span uses display: block which makes the rendering of these
references take up a whole line by themselves.

Override block styling of spans within an `a' element to prevent such
chat message styling issues
This commit is contained in:
Debanjum Singh Solanky 2024-09-12 16:27:55 -07:00
parent 272eae5d66
commit 6e660d11c9

View file

@ -18,6 +18,11 @@ div.chatMessageWrapper p:not(:last-child) {
margin-bottom: 16px; margin-bottom: 16px;
} }
/* Override some link styling by Katex to improve rendering */
div.chatMessageWrapper a span {
display: revert !important;
}
div.khojfullHistory { div.khojfullHistory {
border-width: 1px; border-width: 1px;
padding-left: 4px; padding-left: 4px;