Commit c1930c0
committed
fix: pass markdown theme to preloadContentLanguages for correct shiki initialization
preloadContentLanguages initialized the shiki highlighter with default
themes (vitesse-light/vitesse-dark) because it never received the user's
configured theme. When renderMarkdown later called codeToHast with the
actual theme, the highlighter didn't have it loaded, silently falling
back to plain text for all code blocks.1 parent c5660bc commit c1930c0
2 files changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
313 | | - | |
| 313 | + | |
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
465 | 465 | | |
466 | 466 | | |
467 | 467 | | |
468 | | - | |
| 468 | + | |
| 469 | + | |
469 | 470 | | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
470 | 475 | | |
471 | 476 | | |
472 | 477 | | |
| |||
0 commit comments