Commit f25dfbb
committed
fix(mdviewer): code block line annotation on first load, disable spellcheck
Fix _annotateCodeBlockLines to work even when morphdom strips
data-source-line from <pre> on first render — falls back to estimating
source line from nearest preceding sibling. Skip already-annotated
blocks to avoid double processing.
Disable spellcheck, autocorrect, autocomplete, and autocapitalize on
all code blocks in the viewer.
Remove debug exports and restore sandbox.1 parent 5c018a7 commit f25dfbb
2 files changed
Lines changed: 33 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
572 | 571 | | |
573 | 572 | | |
574 | 573 | | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | 574 | | |
582 | 575 | | |
583 | 576 | | |
584 | 577 | | |
| 578 | + | |
585 | 579 | | |
586 | 580 | | |
587 | 581 | | |
| |||
675 | 669 | | |
676 | 670 | | |
677 | 671 | | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | | - | |
682 | | - | |
683 | | - | |
684 | | - | |
685 | 672 | | |
686 | 673 | | |
687 | 674 | | |
| |||
706 | 693 | | |
707 | 694 | | |
708 | 695 | | |
709 | | - | |
710 | | - | |
711 | | - | |
712 | | - | |
713 | | - | |
714 | | - | |
715 | 696 | | |
716 | 697 | | |
717 | 698 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
186 | 194 | | |
187 | 195 | | |
188 | 196 | | |
| |||
193 | 201 | | |
194 | 202 | | |
195 | 203 | | |
196 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
197 | 207 | | |
198 | 208 | | |
199 | 209 | | |
200 | | - | |
201 | | - | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
202 | 231 | | |
203 | 232 | | |
204 | 233 | | |
| |||
0 commit comments