You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*Note: You need to install `@highlightjs/cdn-assets` package instead of `highlight.js`. See [Download prebuilt CDN assets](#download-prebuilt-cdn-assets)*
295
+
*Note: For now you'll want to install `@highlightjs/cdn-assets` package instead of `highlight.js`.
296
+
See [Download prebuilt CDN assets](#download-prebuilt-cdn-assets)*
296
297
297
298
To import the library and register only those languages that you need:
*Note: The above code works only when the file containing the JavaScript code and the `node_modules` folder are inside same folder. If that is not the case, you have to modify the path in import statement accordingly.*
313
+
*Note: The path to these files will depend on how your individiaul project is configured,
314
+
the path `./assets/js` above is only an example. You'll likely need to modify the path
315
+
for your own unmique setup.*
313
316
314
317
You can also use [`importmap`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script/type/importmap) to import in similar way as Node:
0 commit comments