Skip to content

Commit

Permalink
deploy: 5384f40
Browse files Browse the repository at this point in the history
  • Loading branch information
negue committed Oct 13, 2023
1 parent 4f5de74 commit f5bbb14
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions assets/readme/components/highlight-editor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,13 @@ based on the same idea's as:
4. > Note: if you already have a markdown worker / module added, you don't need to use another worker, then you can skip this step
```ts
const prismWorker = () => new Worker('./prism.worker.ts', {
name: 'markdown',
type: "module"
});
const prismWorker = () => new Worker(
new URL('./prism.worker.ts', import.meta.url),
{
name: 'markdown',
type: "module"
}
);

/* in your app module */
@NgModule({
Expand Down

0 comments on commit f5bbb14

Please sign in to comment.