fix(markdown): restore paragraph spacing in assistant messages

Wire the unused --markdown-paragraph-spacing token to .markdown-content p so
adjacent paragraphs no longer collapse into a single visual line (Tailwind
preflight had zeroed the default <p> margins).

The renderer wraps each block in a display:contents [data-md-block] element, so
the message-level last-child margin nullifiers target the wrapper, not the
paragraph. Drop the trailing margin on the last paragraph of the last block
directly so messages don't gain extra bottom space. Keep tool-card and
reasoning markdown compact.
This commit is contained in:
Bohdan Triapitsyn
2026-06-18 01:00:05 +03:00
parent 59ecd86b4b
commit 08a851f902
3 changed files with 27 additions and 1 deletions
+1 -1
View File
@@ -328,7 +328,7 @@
--markdown-blockquote-border: var(--markdown-blockquote-border);
/* Markdown spacing defaults */
--markdown-paragraph-spacing: 0.35rem;
--markdown-paragraph-spacing: 0.75rem;
--markdown-heading-primary-top: 0.75rem;
--markdown-heading-primary-bottom: 0.35rem;
--markdown-heading-secondary-top: 0.6rem;