mirror of
https://github.com/amitwh/markdown-converter.git
synced 2026-10-01 09:19:34 +05:30
feat(import): embed Microsoft MarkItDown for any-file → Markdown import
- File → Import with MarkItDown (Any Format)…: PDF, DOCX, PPTX, XLSX, Outlook .msg/.eml, EPUB, images, CSV/JSON/XML, ZIP (audio/OCR via the [all] extras) — verified live against HTML, XLSX (our own exporter's output), and PDF fixtures - Command auto-resolution with caching: markitdown binary → python -m markitdown → python3 -m markitdown - SEC-1 argv discipline (execFile only, user paths never through a shell), 50MB cap, 120s timeout, sanitized errors that surface markitdown's own "pip install 'markitdown[pdf]'" hints for missing format extras - Output lands next to the source as <name>.md (numeric suffix, never overwrites) and opens in a new tab; markitdown:available/convert IPC allowlisted for renderer flows - Help → Dependencies lists MarkItDown; README/UPDATES updated (v4.6.1) 12 new tests (629 green); lint clean; clean app boot
This commit is contained in:
+31
@@ -1,5 +1,36 @@
|
||||
# PanConverter - Updates & Changelog
|
||||
|
||||
## Version 4.6.1 (2026-09-05)
|
||||
|
||||
### New Features
|
||||
- **MarkItDown import** — "File → Import with MarkItDown (Any Format)…" embeds
|
||||
Microsoft's [markitdown](https://github.com/microsoft/markitdown) (MIT) as an
|
||||
any-file → Markdown path: PDF, DOCX, PPTX, XLSX, Outlook .msg/.eml, EPUB,
|
||||
images, CSV/JSON/XML, ZIP; audio transcription and OCR with the `[all]` extras
|
||||
- Command auto-resolution: `markitdown` binary, then `python -m markitdown` /
|
||||
`python3 -m markitdown` (probed once, cached)
|
||||
- Same SEC-1 argv discipline as Pandoc (execFile only, paths never through a shell),
|
||||
50MB input cap, 120s timeout, path-sanitized errors that surface markitdown's
|
||||
actionable `pip install 'markitdown[...]'` hints
|
||||
- Output written next to the source as `<name>.md` (numeric suffix instead of
|
||||
overwriting) and opened in a new tab; `markitdown:available` / `markitdown:convert`
|
||||
IPC for future renderer flows
|
||||
- **AI Assistant: Anthropic-compatible provider** — any base URL speaking the
|
||||
Anthropic messages schema (LiteLLM proxies, Bedrock gateways, local servers);
|
||||
x-api-key + Bearer auth, keyless proxies supported, tolerates bases with or
|
||||
without a trailing `/v1`
|
||||
|
||||
### Bug Fixes
|
||||
- File → Open PDF crashed the PDF editor (null operation matched no section; now
|
||||
defaults to Merge)
|
||||
- Backlinks panel required the wrong module path (failed at registration)
|
||||
- writing-studio engines/panels now await their IPC-backed settings/file backends
|
||||
(eliminates `JSON.parse("[object Promise]")` crashes)
|
||||
- Manuscript panel's window.prompt (unsupported in Electron) replaced with an
|
||||
inline dialog; collaboration comment store made async to match its IO
|
||||
|
||||
---
|
||||
|
||||
## Version 4.6.0 (2026-09-05)
|
||||
|
||||
### New Features
|
||||
|
||||
Reference in New Issue
Block a user