1.0.3 • Published 2 years ago

mdsvex-relative-images v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

mdsvex-relative-images

Allows you to use relative urls to images from the md file.

Usage

npm install mdsvex-relative-images

Add the plugin to your mdsvex config

// mdsvex.config.js
import relativeImages from "mdsvex-relative-images";

export default {
  // ... rest of your config
  remarkPlugins: [relativeImages],
};

Now you can load images like so:

![my image](./my-image.png)

It also works for img and video tags:

<img src="./my-image.png" />
<video src="./my-video.mp4" />
1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago