A powerful web application that converts AI chatbot outputs (from ChatGPT, Gemini, DeepSeek, etc.) into perfectly formatted, editable documents.
- Split-Screen Editor: Dark-themed code editor with line numbers on the left, live preview on the right
- Markdown Rendering: Full GFM support (tables, strikethrough, task lists)
- LaTeX Math: Beautiful equation rendering with KaTeX
- Code Highlighting: Syntax highlighting for 100+ languages
- Smart Paste Detection: Automatically detects AI-generated content
| Format | Extension | Features |
|---|---|---|
| Word Document | .docx | Via Pandoc, perfect editable math |
| Excel | .xlsx | Editable cells, tables parsed |
| HTML | .html | Full styled export |
| Plain Text | .txt | Clean text |
| Markdown | .md | Raw source |
- Notes Sidebar: Create, search, and manage multiple notes
- Statistics Panel: Word count, character count, reading time
- Formatting Toolbar: Quick markdown formatting buttons
- Settings Panel:
- Dark/Light mode toggle
- Auto-save toggle
- Live preview toggle
- Pandoc engine status
- Keyboard shortcuts reference
- Pandoc Status Indicator: Shows engine connection status
# Clone the repository
git clone https://github.com/yourusername/ai-doc-converter.git
cd ai-doc-converter/web-app
# Install dependencies
npm install
# Start development server
npm run devOpen http://localhost:3000 in your browser.
Pandoc is required for generating Word documents with perfect mathematical equations.
-
Install Pandoc:
- Windows:
winget install pandoc(or download from website) - macOS:
brew install pandoc - Linux:
sudo apt install pandoc
- Windows:
-
Verify Configuration: The application tries to find Pandoc automatically. If you installed it in a custom location or it's not found:
- Open
app/api/convert/route.ts - Look for the
pandocPathsarray - Update the path with your username:
'C:\\Users\\YOUR_USERNAME\\AppData\\Local\\Pandoc\\pandoc.exe',
- Restart the server (
npm run dev) after changes.
- Open
If you don't want to install Pandoc locally, use Docker:
# Build and run with Docker
docker build -t ai-doc-converter .
docker run -p 3000:3000 ai-doc-converter- PDF Export: The PDF export feature has been removed from the core to simplify the project.
- Contribution Opportunity: If you want PDF export, you can implement it using
wkhtmltopdfor by re-enabling LaTeX support. Seeapp/api/convert/route.tsfor where conversion logic lives.
- Contribution Opportunity: If you want PDF export, you can implement it using
- Text Alignment: Markdown doesn't support text alignment (center, right) by default.
- Underline: Uses HTML
<u>tag.
- Raw LaTeX (e.g.,
\vec{a} \times \vec{b}) is detected - Delimiters are normalized (
\(→$,\[→$$) - KaTeX renders beautiful equations in the browser
- Frontend sends markdown to
/api/convert - Server writes content to temp file
- Pandoc converts:
markdown → docxwith full LaTeX support (equations become editable Word math regions) - Generated DOCX is streamed back to browser
| Shortcut | Action |
|---|---|
| Ctrl + B | Bold |
| Ctrl + I | Italic |
| Ctrl + S | Save (auto-save enabled) |
| Ctrl + E | Export DOCX |
| Ctrl + N | New Note |
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
MIT License - see LICENSE for details.