feat: import Word articles with embedded images
Showing
This diff is collapsed.
| ... | @@ -13,6 +13,7 @@ | ... | @@ -13,6 +13,7 @@ |
| "build:astro": "astro check && astro build", | "build:astro": "astro check && astro build", | ||
| "preview": "astro preview", | "preview": "astro preview", | ||
| "check": "astro check", | "check": "astro check", | ||
| "test": "node --import tsx/esm --test tests/*.test.ts", | |||
| "start": "node --env-file=.env server.mjs", | "start": "node --env-file=.env server.mjs", | ||
| "admin": "npm start", | "admin": "npm start", | ||
| "serve": "npm run build && npm start" | "serve": "npm run build && npm start" | ||
| ... | @@ -22,10 +23,16 @@ | ... | @@ -22,10 +23,16 @@ |
| "@astrojs/sitemap": "^3.7.3", | "@astrojs/sitemap": "^3.7.3", | ||
| "astro": "5.18.2", | "astro": "5.18.2", | ||
| "gray-matter": "^4.0.3", | "gray-matter": "^4.0.3", | ||
| "marked": "^14.1.4" | "mammoth": "^1.12.0", | ||
| "marked": "^14.1.4", | |||
| "turndown": "^7.2.4", | |||
| "turndown-plugin-gfm": "^1.0.2" | |||
| }, | }, | ||
| "devDependencies": { | "devDependencies": { | ||
| "@astrojs/check": "^0.9.6", | "@astrojs/check": "^0.9.6", | ||
| "@types/turndown": "^5.0.6", | |||
| "docx": "^9.7.1", | |||
| "tsx": "^4.23.1", | |||
| "typescript": "^5.9.3" | "typescript": "^5.9.3" | ||
| } | } | ||
| } | } |
src/lib/word-import.ts
0 → 100644
tests/word-import.test.ts
0 → 100644
Please register or sign in to comment