Skip to content

Commit

Permalink
Fix inconsistent semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
matubu authored Sep 10, 2024
1 parent e12f2e4 commit f94dc67
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ or
Highlight the code (in your javascript):

```js
import { highlightAll } from '/path/dist/index.js'
import { highlightAll } from '/path/dist/index.js';
highlightAll();
```

Expand Down Expand Up @@ -66,8 +66,8 @@ loadLanguage('language-name', customLanguage);
```

```js
import ... from 'https://unpkg.com/@speed-highlight/core/dist/index.js'
import ... from 'https://cdn.jsdelivr.net/gh/speed-highlight/core/dist/index.js'
import ... from 'https://unpkg.com/@speed-highlight/core/dist/index.js';
import ... from 'https://cdn.jsdelivr.net/gh/speed-highlight/core/dist/index.js';
```

### Deno
Expand All @@ -77,8 +77,8 @@ Use the [deno module](https://deno.land/x/speed_highlight_js)
```js
import { setTheme, printHighlight } from 'https://x.nest.land/speed_highlight_js/dist/terminal.js';

await setTheme('[theme-name]')
printHighlight('console.log("hello")', 'js')
await setTheme('[theme-name]');
printHighlight('console.log("hello")', 'js');
```

## Node
Expand All @@ -92,8 +92,8 @@ npm i @speed-highlight/core
```js
const { setTheme, printHighlight } = require('@speed-highlight/core/terminal');

setTheme('[theme-name]')
printHighlight('console.log("hello")', 'js')
setTheme('[theme-name]');
printHighlight('console.log("hello")', 'js');
```

## Migrating from prism
Expand All @@ -120,8 +120,8 @@ For the script part remove the prism.js script and replace it by a import and a
<body>
- <script src="prism.js"></script>
+<script>
+ import { highlightAll } from 'https://unpkg.com/@speed-highlight/core/dist/index.js'
+ highlightAll()
+ import { highlightAll } from 'https://unpkg.com/@speed-highlight/core/dist/index.js';
+ highlightAll();
+</script>
</body>
```
Expand Down

0 comments on commit f94dc67

Please sign in to comment.