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
- use relative urls to images from the markdown file while also using the `enhanced:img` library from `@sveltejs/enhanced-img`.
12
15
- add CSS class names and extra attributes (`loading`, `fetchpriority`, and `decoding`) to images directly in markdown (image by image) or through the plugin configuration (to all images).
13
16
- add imagetools directives to images in markdown (image by image) or through the plugin configuration (to all images).
@@ -16,6 +19,38 @@ Special thanks to https://github.com/mattjennings/mdsvex-relative-images, for th
16
19
17
20
Feel free to open a PR or an issue if you have any suggestions or feature requests!
18
21
22
+
## 🎯 Live Demo
23
+
24
+
Experience the plugin in action with our [interactive demo](https://lzinga.github.io/mdsvex-enhanced-images/) hosted on GitHub Pages. The demo showcases:
25
+
26
+
-**Basic image processing** with automatic `enhanced:img` component generation
27
+
-**CSS class application** via URL parameters
28
+
-**HTML attribute injection** for performance optimization
29
+
-**Image processing directives** like rotation, tinting, and effects
30
+
-**Real-time examples** of all plugin features
31
+
32
+
The demo is automatically deployed from the `/demo` directory using SvelteKit's static adapter.
33
+
34
+
### 🛠️ Local Demo Development
35
+
36
+
To run the demo locally for testing and development:
37
+
38
+
```bash
39
+
# Install demo dependencies
40
+
npm run demo:install
41
+
42
+
# Run demo in development mode (with hot reloading)
43
+
npm run demo:dev
44
+
45
+
# Build and serve demo locally (mimics production)
46
+
npm run demo:serve
47
+
48
+
# Build demo only
49
+
npm run demo:build
50
+
```
51
+
52
+
These scripts will automatically build the plugin first, then set up the demo environment.
0 commit comments