mirror of
https://github.com/amitwh/markdown-converter.git
synced 2026-08-03 02:11:07 +05:30
Fixed export of ASCII art, charts, tables, and flowcharts to match preview exactly: 🎨 ASCII Art Preservation: - Code blocks now export exactly as shown in preview - Each line rendered separately to preserve exact spacing and alignment - Monospace font (Consolas) used consistently across all export formats - Line breaks, spacing, and box-drawing characters preserved perfectly 📝 Word Template Exporter Improvements: - createCodeBlockXml: Renders each line as separate paragraph with exact spacing - Added <w:keepLines/> and <w:wordWrap w:val="0"/> for no-wrap behavior - Enhanced isAsciiArt detection with more Unicode box-drawing characters - Added support for rounded corners (╭╮╯╰), heavy box chars, more arrows 📄 PDF Export Enhancements: - Added -V monofont="Consolas" for proper code block rendering - Added --highlight-style=tango for syntax highlighting - Applied to main export, fallback engines, and CLI conversion 🖨️ HTML/Electron PDF Improvements: - Enhanced CSS: white-space: pre, word-wrap: normal - font-family: Consolas, Monaco, 'Courier New', monospace - Print media queries preserve code block formatting - overflow: visible prevents content truncation 🔧 Technical Changes: - src/wordTemplateExporter.js: Enhanced code block and ASCII art rendering - src/main.js: Added monofont settings to all PDF export paths - Updated version to 1.9.1 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
139 lines
3.5 KiB
JSON
139 lines
3.5 KiB
JSON
{
|
|
"name": "pan-converter",
|
|
"version": "1.9.1",
|
|
"description": "Cross-platform Markdown editor and converter using Pandoc",
|
|
"main": "src/main.js",
|
|
"scripts": {
|
|
"start": "electron .",
|
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
"build": "electron-builder",
|
|
"build:win": "cross-env CSC_LINK=code-signing-cert.pfx CSC_KEY_PASSWORD=PanConverter2024! electron-builder --win",
|
|
"build:win-unsigned": "cross-env CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder --win",
|
|
"build:mac": "electron-builder --mac",
|
|
"build:linux": "electron-builder --linux",
|
|
"dist": "electron-builder --publish=never",
|
|
"dist:all": "electron-builder -mwl",
|
|
"generate-icons": "node scripts/generate-icons.js"
|
|
},
|
|
"keywords": [
|
|
"markdown",
|
|
"pandoc",
|
|
"converter",
|
|
"editor"
|
|
],
|
|
"author": "Amit Haridas <amit.wh@gmail.com>",
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"cross-env": "^10.0.0",
|
|
"electron": "^37.4.0",
|
|
"electron-builder": "^26.0.12",
|
|
"sharp": "^0.34.3"
|
|
},
|
|
"dependencies": {
|
|
"codemirror": "^6.0.2",
|
|
"core-util-is": "^1.0.3",
|
|
"docx": "^9.5.1",
|
|
"docx4js": "^3.3.0",
|
|
"dompurify": "^3.2.6",
|
|
"electron-store": "^10.1.0",
|
|
"highlight.js": "^11.11.1",
|
|
"html2pdf.js": "^0.10.1",
|
|
"marked": "^16.2.1",
|
|
"pdf-lib": "^1.17.1",
|
|
"pdfkit": "^0.14.0",
|
|
"pizzip": "^3.2.0",
|
|
"tslib": "^2.8.1",
|
|
"xlsx": "^0.18.5"
|
|
},
|
|
"build": {
|
|
"appId": "com.panconverter.app",
|
|
"productName": "PanConverter",
|
|
"directories": {
|
|
"output": "dist"
|
|
},
|
|
"icon": "assets/icon",
|
|
"files": [
|
|
"src/**/*",
|
|
"assets/**/*",
|
|
"scripts/**/*",
|
|
"node_modules/**/*",
|
|
"package.json"
|
|
],
|
|
"fileAssociations": [
|
|
{
|
|
"ext": "md",
|
|
"name": "Markdown Document",
|
|
"description": "Markdown Document",
|
|
"mimeType": "text/markdown",
|
|
"role": "Editor"
|
|
},
|
|
{
|
|
"ext": "markdown",
|
|
"name": "Markdown Document",
|
|
"description": "Markdown Document",
|
|
"mimeType": "text/markdown",
|
|
"role": "Editor"
|
|
}
|
|
],
|
|
"mac": {
|
|
"category": "public.app-category.productivity"
|
|
},
|
|
"win": {
|
|
"target": [
|
|
{
|
|
"target": "nsis",
|
|
"arch": [
|
|
"x64"
|
|
]
|
|
},
|
|
{
|
|
"target": "portable",
|
|
"arch": [
|
|
"x64"
|
|
]
|
|
},
|
|
{
|
|
"target": "zip",
|
|
"arch": [
|
|
"x64"
|
|
]
|
|
}
|
|
],
|
|
"artifactName": "${productName}-${version}-${arch}.${ext}",
|
|
"requestedExecutionLevel": "asInvoker",
|
|
"signAndEditExecutable": false
|
|
},
|
|
"nsis": {
|
|
"oneClick": false,
|
|
"perMachine": false,
|
|
"allowToChangeInstallationDirectory": true,
|
|
"displayLanguageSelector": true,
|
|
"createDesktopShortcut": true,
|
|
"createStartMenuShortcut": true,
|
|
"shortcutName": "PanConverter",
|
|
"runAfterFinish": true,
|
|
"menuCategory": "Productivity",
|
|
"license": "LICENSE",
|
|
"warningsAsErrors": false,
|
|
"artifactName": "${productName}-Setup-${version}.${ext}",
|
|
"deleteAppDataOnUninstall": false,
|
|
"differentialPackage": true
|
|
},
|
|
"linux": {
|
|
"target": [
|
|
"deb",
|
|
"AppImage",
|
|
"snap"
|
|
],
|
|
"category": "Utility"
|
|
},
|
|
"deb": {
|
|
"depends": [
|
|
"pandoc"
|
|
],
|
|
"description": "Markdown editor and converter using Pandoc",
|
|
"maintainer": "Amit Haridas <amit.wh@gmail.com>"
|
|
}
|
|
}
|
|
}
|