feat: full Markdown support in service card comments (mistune)

This commit is contained in:
2026-04-28 11:57:44 +00:00
parent b951f6c68e
commit fa88f7f4e4
3 changed files with 39 additions and 24 deletions
+31
View File
@@ -781,3 +781,34 @@ button {
color: rgba(240, 248, 255, 0.95);
text-shadow: 0 2px 10px rgba(9, 44, 72, 0.45);
}
/* Markdown inside service card comments */
.tile-comment p { margin: 0 0 0.4em; }
.tile-comment p:last-child { margin-bottom: 0; }
.tile-comment ul, .tile-comment ol { margin: 0.3em 0 0.4em 1.2em; padding: 0; }
.tile-comment li { margin-bottom: 0.15em; }
.tile-comment h1,.tile-comment h2,.tile-comment h3,
.tile-comment h4,.tile-comment h5,.tile-comment h6 {
font-size: 0.85em; font-weight: 700; margin: 0.4em 0 0.2em;
}
.tile-comment code {
font-family: monospace; font-size: 0.88em;
background: rgba(0,0,0,.06); border-radius: 3px; padding: 0.1em 0.3em;
}
.tile-comment pre {
background: rgba(0,0,0,.06); border-radius: 4px;
padding: 0.4em 0.6em; overflow-x: auto; font-size: 0.82em;
}
.tile-comment pre code { background: none; padding: 0; }
.tile-comment blockquote {
border-left: 3px solid #c7d9e8; margin: 0.3em 0 0.3em 0;
padding-left: 0.6em; color: #5a7a90;
}
.tile-comment a { color: #1668a6; text-decoration: underline; }
.tile-comment table { border-collapse: collapse; font-size: 0.82em; margin: 0.3em 0; }
.tile-comment th, .tile-comment td {
border: 1px solid #c7d9e8; padding: 0.2em 0.5em;
}
.tile-comment th { background: #eaf2fb; font-weight: 700; }
.tile-comment del { text-decoration: line-through; color: #7a9aaf; }
.tile-comment input[type=checkbox] { margin-right: 0.3em; }