Problem or Use Case
The convert module requires system-installed pandoc for all conversions. For Markdown → DOCX specifically, python-docx could handle it directly without the pandoc dependency, making the convert module usable on systems where pandoc isn't installed.
Proposed Solution
When converting Markdown → DOCX and pandoc is not available, fall back to a python-docx-based converter. Parse Markdown headings, lists, tables, code blocks, and bold/italic into equivalent DOCX elements.
Scope
Medium (few files, < 300 lines)
Problem or Use Case
The
convertmodule requires system-installed pandoc for all conversions. For Markdown → DOCX specifically,python-docxcould handle it directly without the pandoc dependency, making the convert module usable on systems where pandoc isn't installed.Proposed Solution
When converting Markdown → DOCX and pandoc is not available, fall back to a
python-docx-based converter. Parse Markdown headings, lists, tables, code blocks, and bold/italic into equivalent DOCX elements.Scope
Medium (few files, < 300 lines)