Skip to content

Commit

Permalink
5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Oct 1, 2024
1 parent 142c6e8 commit feb5103
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "remark-embed-images",
"version": "4.0.0",
"version": "5.0.0",
"description": "remark plugin to embed local images as data URIs",
"license": "MIT",
"keywords": [
Expand Down
12 changes: 7 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ npm install remark-embed-images
In Deno with [`esm.sh`][esmsh]:

```js
import remarkEmbedImages from 'https://esm.sh/remark-embed-images@4'
import remarkEmbedImages from 'https://esm.sh/remark-embed-images@5'
```

In browsers with [`esm.sh`][esmsh]:

```html
<script type="module">
import remarkEmbedImages from 'https://esm.sh/remark-embed-images@4?bundle'
import remarkEmbedImages from 'https://esm.sh/remark-embed-images@5?bundle'
</script>
```

Expand All @@ -76,9 +76,11 @@ import {remark} from 'remark'
import remarkEmbedImages from 'remark-embed-images'
import {read} from 'to-vfile'

const file = await remark()
const file = await read('example.md')

await remark()
.use(remarkEmbedImages)
.process(await read('example.md'))
.process(file)

console.log(String(file))
```
Expand Down Expand Up @@ -118,7 +120,7 @@ versions of Node.js.

When we cut a new major release, we drop support for unmaintained versions of
Node.
This means we try to keep the current release line, `remark-embed-images@4`,
This means we try to keep the current release line, `remark-embed-images@5`,
compatible with Node.js 18.

This plugin works with `unified` version 6+ and `remark` version 7+.
Expand Down

0 comments on commit feb5103

Please sign in to comment.