fix(comments): add md-content class to comment item to fix syntax highlighting and blank line issues

This commit is contained in:
xfy 2026-06-29 15:42:08 +08:00
parent 408b29dd9d
commit 45811df96e

View File

@ -77,7 +77,7 @@ pub fn CommentItem(comment: PublicComment, post_id: i32) -> Element {
}
div {
class: "prose prose-sm dark:prose-invert max-w-none text-paper-secondary",
class: "prose prose-sm dark:prose-invert max-w-none text-paper-secondary md-content",
dangerous_inner_html: comment.content_html.as_deref().unwrap_or(""),
}