mdimg
mdimg copied to clipboard
[Feature Request] Export binary Buffer without generating a new file
This would be a great feature and convenient for production usage!
Closed as v1.3.0 implements the feature.
In Node.js:
const convertRes = await mdimg({
inputFilename: "path/to/input.md",
encoding: "blob",
});
writeFileSync("path/to/output.png", convertRes.data);
With CLI:
mdimg -i path/to/input.md -e blob