Render view comments as Markdown with pulldown-cmark.

Comment cards now turn links, code, and emphasis into real HTML instead of escaped source text.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-08-04 16:14:34 +08:00
1 parent 7848180454
commit 31a4b69bbd
5 files changed
+101 -6

No files matched your search

+21 -1
View File
@@ -308,10 +308,30 @@ section.block > h2 {
font-size: 0.92rem;
display: block;
margin-top: 0.35rem;
white-space: pre-line;
line-height: 1.55;
max-width: 42em;
}
.comment-text > :first-child { margin-top: 0; }
.comment-text > :last-child { margin-bottom: 0; }
.comment-text p { margin: 0.45em 0; }
.comment-text a {
color: var(--ink);
text-decoration: underline;
text-underline-offset: 0.12em;
border-bottom: none;
}
.comment-text a:hover { opacity: 0.72; }
.comment-text code {
font-family: var(--mono);
font-size: 0.86em;
background: var(--fill);
padding: 0.08em 0.28em;
border-radius: 4px;
}
.comment-text ul, .comment-text ol {
margin: 0.4em 0;
padding-left: 1.35em;
}
code.expr {
font-family: var(--mono);
font-size: 0.84rem;