lucsorel / markdown-image-loader Goto Github PK
View Code? Open in Web Editor NEWHandles image references involved in markdown files during the webpack processing.
License: MIT License
Handles image references involved in markdown files during the webpack processing.
License: MIT License
Is it working under Webpack 5? If so it is possible to update the dependency?
Hey ๐
We're facing a small issue with this loader. It's converting the image src correctly but without a /
at the start of the path. That means when we render the markdown, browsers try to load from the current URL instead of the root URL.
![test image](/my-image.png)
=> ![test image](my-image_ec3fbba949c04f7cf52dd40e8b68d41e.png)
Maybe we're doing something wrong, in which case you may have a fix in mind already? If not, I would be happy to contribute something to fix this.
In terms of contribution, I'm thinking maybe an option called pathPrefix
for the loader that would be inserted at the start of the image src?
![test image](/my-image.png)
=> ![test image](<OPTIONAL_PATH_PREFIX>my-image_ec3fbba949c04f7cf52dd40e8b68d41e.png)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.