|
216 | 216 | color: var(--fg-secondary); |
217 | 217 | } |
218 | 218 |
|
| 219 | + /* GitHub-style alerts (via marked-alert) */ |
| 220 | + main .markdown-alert { |
| 221 | + border-left: 3px solid; |
| 222 | + padding: 0.75rem 1rem; |
| 223 | + margin: 1rem 0; |
| 224 | + border-radius: 0 var(--radius-sm) var(--radius-sm) 0; |
| 225 | + color: var(--fg-secondary); |
| 226 | + } |
| 227 | + main .markdown-alert .markdown-alert-title { |
| 228 | + display: flex; |
| 229 | + align-items: center; |
| 230 | + gap: 0.4rem; |
| 231 | + font-weight: 600; |
| 232 | + margin-bottom: 0.25rem; |
| 233 | + } |
| 234 | + main .markdown-alert .markdown-alert-title svg { |
| 235 | + width: 16px; |
| 236 | + height: 16px; |
| 237 | + flex-shrink: 0; |
| 238 | + fill: currentColor; |
| 239 | + } |
| 240 | + main .markdown-alert-note { |
| 241 | + border-left-color: #478be6; |
| 242 | + background: rgba(71, 139, 230, 0.1); |
| 243 | + } |
| 244 | + main .markdown-alert-note .markdown-alert-title { color: #478be6; } |
| 245 | + main .markdown-alert-tip { |
| 246 | + border-left-color: #3fb950; |
| 247 | + background: rgba(63, 185, 80, 0.1); |
| 248 | + } |
| 249 | + main .markdown-alert-tip .markdown-alert-title { color: #3fb950; } |
| 250 | + main .markdown-alert-important { |
| 251 | + border-left-color: #a371f7; |
| 252 | + background: rgba(163, 113, 247, 0.1); |
| 253 | + } |
| 254 | + main .markdown-alert-important .markdown-alert-title { color: #a371f7; } |
| 255 | + main .markdown-alert-warning { |
| 256 | + border-left-color: #d29922; |
| 257 | + background: rgba(210, 153, 34, 0.1); |
| 258 | + } |
| 259 | + main .markdown-alert-warning .markdown-alert-title { color: #d29922; } |
| 260 | + main .markdown-alert-caution { |
| 261 | + border-left-color: #f85149; |
| 262 | + background: rgba(248, 81, 73, 0.1); |
| 263 | + } |
| 264 | + main .markdown-alert-caution .markdown-alert-title { color: #f85149; } |
| 265 | +
|
219 | 266 | /* Lists */ |
220 | 267 | main ul, main ol { margin: 0.6rem 0 0.6rem 1.5rem; color: var(--fg-secondary); } |
221 | 268 | main li { margin: 0.3rem 0; line-height: 1.7; } |
|
274 | 321 | <div id="content"><p id="loading">Loading...</p></div> |
275 | 322 | </main> |
276 | 323 | <script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script> |
| 324 | +<script src="https://cdn.jsdelivr.net/npm/marked-alert/dist/index.umd.js"></script> |
277 | 325 | <script> |
| 326 | +marked.use(markedAlert()); |
278 | 327 | (function() { |
279 | 328 | const content = document.getElementById('content'); |
280 | 329 |
|
|
0 commit comments