Commit 77e3adb
authored
The HomepageExample.js files in SeaORM, SeaQuery, SeaStreamer, and SeaORM-X
imported a standalone prism-core instance and set it as window.Prism at module
scope. When Docusaurus prefetched the homepage bundle (triggered by hovering
over the navbar logo), this module-level code executed and overwrote the global
Prism instance, corrupting syntax highlighting on the current page.
Since Rust grammar is already registered via docusaurus.config.js
(additionalLanguages: ['toml', 'rust', 'bash']), these manual imports were
redundant and harmful. Removing them fixes the issue.
Closes #167
1 parent daacf26 commit 77e3adb
File tree
4 files changed
+0
-12
lines changed- SeaORM-X/src/components
- SeaORM/src/components
- SeaQuery/src/components
- SeaStreamer/src/components
4 files changed
+0
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | 10 | | |
14 | 11 | | |
15 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | 10 | | |
14 | 11 | | |
15 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | 10 | | |
14 | 11 | | |
15 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | 10 | | |
14 | 11 | | |
15 | 12 | | |
| |||
0 commit comments