I recently made an extension for Marked (github, npm) designed to generate responsive images by injecting srcset and sizes attributes into html content generated from markdown files using simple filename conventions.
You can check it out at:
Or install it directly using:
npm install marked-responsive-images