strapi-markdown-image-fixer
v0.1.0
Published
Converts absolute image URLs in markdown to relative paths
Readme
Strapi Plugin: Markdown Image Fixer
A small Strapi plugin that replaces the domain part of image URLs inside markdown / rich text content.
Example:
http://localhost:1337/uploads/image.pngbecomes
https://example.com/cms/uploads/image.pngThe target base URL can be configured and is applied to all image URLs found in the content.
Use Cases
- migrating content from local development to production
- fixing absolute media URLs after domain changes
- moving Strapi instances between environments
Installation
npm install strapi-plugin-markdown-image-fixerEnable the plugin in config/plugins.ts:
export default {
'markdown-image-fixer': {
enabled: true,
},
};Restart Strapi afterwards.
Disclaimer
This plugin is provided as-is.
No guarantees, no warranties, no support.
Use at your own risk. Always test changes and keep backups of your content.
License
MIT
