Mdsvex Enhanced Images banner
lzinga lzinga

Mdsvex Enhanced Images

Design community

Description

A plugin for mdsvex & sveltekit that enhances image handling by allowing the use of relative URLs, adding CSS classes and extra attributes, and applying imagetools directives directly in markdown files.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

Project Unmaintained

**This project is no longer under active development.**

Please use [**CollierCZ/markdoc-svelte**](https://github.com/CollierCZ/markdoc-svelte) — a maintained and feature‑rich Svelte preprocessor for Markdoc.

For similar configuration or migration details, see: [Relative image paths · Issue #25 · CollierCZ/markdoc-svelte](https://github.com/CollierCZ/markdoc-svelte/issues/25)

While I am not making direct changes myself anymore, **pull requests are welcome**, and I will continue to review and merge well‑formed contributions.

mdsvex-enhanced-images

main NPM Version GitHub License GitHub last commit

🚀 Live Demo

This plugin allows you to:

  • use relative urls to images from the markdown file while also using the enhanced:img library from @sveltejs/enhanced-img.
  • 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).
  • add imagetools directives to images in markdown (image by image) or through the plugin configuration (to all images).

Special thanks to https://github.com/mattjennings/mdsvex-relative-images, f