{"repo":"benallfree/mdsvex-enhanced-images","free":true,"listed":false,"github":"https://github.com/benallfree/mdsvex-enhanced-images","clone":"git clone https://github.com/benallfree/mdsvex-enhanced-images.git","description":"MDsveX plugin to render Markdown images using @sveltejs/enhanced-img","language":"TypeScript","stars":16,"topics":["markdown","mdsvex","svelte","enhanced-img"],"license":"MIT","category":"productivity","readme_excerpt":"Enhanced Images Plugin for MDsveX This plugin converts Markdown images to components. Features - Automatically imports images used in Markdown - Converts Markdown image syntax to - Skips HTTP/HTTPS URLs to avoid processing errors with external images - Handles path resolution for various import scenarios - Preserves title attributes from Markdown images Usage Now use normal Markdown-style images just as you normally would. By default, paths beginning with $ , @ , ./ , or ../ are left unchanged while all other paths are converted to relative paths by prepending ./ . Advanced Usage: Custom Path Resolution If the default path resolution strategy doesn't work for your needs, you can optionally provide a custom resolve function: Example: Make non-relative paths resolve to src/assets/images If you just want to change the resolution of non-relative paths (most common case), you can use defaultResolverFactory to create a custom resolver. The factory's stock resolver will handle paths starting with $ , @ , or ./ or ../ unchanged, and call your custom relative resolver for all other paths. Now, images with non-relative paths in Markdown will resolve to src/assets/images : License MIT","default_branch":null,"files":null,"tree":[],"storefront":"/r/benallfree","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/benallfree/mdsvex-enhanced-images/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}