diff --git a/src/pages/ReadmeMaker/ReadmeMaker.jsx b/src/pages/ReadmeMaker/ReadmeMaker.jsx
index 316c09b..a3227e9 100644
--- a/src/pages/ReadmeMaker/ReadmeMaker.jsx
+++ b/src/pages/ReadmeMaker/ReadmeMaker.jsx
@@ -46,6 +46,18 @@ export default function ReadmeMaker() {
.catch(() => toast('Copy failed'));
}
+ function handleDownloadMd() {
+ if (!currentMd) { toast('Nothing to download yet!'); return; }
+ const blob = new Blob([currentMd], { type: 'text/markdown' });
+ const a = document.createElement('a');
+ a.href = URL.createObjectURL(blob);
+ a.download = 'README.md';
+ document.body.appendChild(a);
+ a.click();
+ document.body.removeChild(a);
+ toast('✓ README.md downloaded!');
+ }
+
function handleResetAll() {
resetAll();
setActiveTemplate(null);
@@ -95,6 +107,7 @@ export default function ReadmeMaker() {
+