Skip to content

Commit 4522986

Browse files
committed
fix: improve highlighting in hybrid mode
1 parent 4ed6701 commit 4522986

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/VueLive.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import "prismjs";
1919
import "prismjs/themes/prism-tomorrow.css";
2020
//vue-prism-editor dependency
2121
import "vue-prism-editor/dist/VuePrismEditor.css";
22+
import "prismjs/components/prism-jsx.min";
2223
2324
import PrismEditor from "vue-prism-editor";
2425
import Preview from "./Preview";
@@ -27,7 +28,7 @@ import hash from "hash-sum";
2728
2829
const LANG_TO_PRISM = {
2930
vue: "html",
30-
js: "js"
31+
js: "jsx"
3132
};
3233
3334
export default {

0 commit comments

Comments
 (0)