Commit 20f41d4
committed
fix: Call highlightCodeBlocks after isLoading=false
The preview div only exists when isLoading is false (v-if/v-else-if).
Moving the highlight call to finally block ensures the DOM element
exists when we try to highlight code blocks.1 parent 20db860 commit 20f41d4
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | 121 | | |
123 | 122 | | |
124 | 123 | | |
| |||
128 | 127 | | |
129 | 128 | | |
130 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
131 | 134 | | |
132 | 135 | | |
133 | 136 | | |
| |||
0 commit comments