mirror of
https://github.com/amitwh/markdown-converter.git
synced 2026-10-01 09:19:34 +05:30
v4.9.4 shipped three interaction bugs in the Flow Chart panel that combined to make it look broken at runtime: (1) .flowchart-preview-render had no min-height, so the Mermaid SVG clipped to 0 when the sidebar flex column shrank; (2) the canvas + preview hosts inherited the body.theme-concreteinfo dark theme, producing dark-on-dark nodes; (3) .flowchart-node.selected only set a 2px stroke on the rect's existing dark fill, which was effectively invisible. Fix: styles-sidebar.css adds min-height: 120px on .flowchart-preview-render; forces a light background on .flowchart-canvas-host / .flowchart-preview-host with !important so theme inheritance cannot override it; forces explicit white fills and dark strokes on .flowchart-node rect/polygon/text and .flowchart-edge so labels read against any background; selection now changes fill (#e3f0ff) AND bumps stroke-width to 3 on both nodes and edges. renderer.js renderFlowChartMermaid now always initializes Mermaid with theme: 'default' regardless of body class — keeps the Mermaid SVG light to match the CSS-forced canvas surface. Three new CSS regression tests in tests/flowchart-panel.test.js read the shipped stylesheet and assert the three structural invariants (non-zero min-height on render target, !important light background on canvas+preview hosts, fill + stroke-width >= 3 on .flowchart-node.selected). Tradeoff: the flowchart surface is now always light, diverging from body theme. Visibility of a working editor is the priority per user direction. Amit Haridas
105 lines
3.8 KiB
JSON
105 lines
3.8 KiB
JSON
{
|
|
"name": "markdown-converter",
|
|
"version": "4.9.5",
|
|
"description": "Professional Markdown editor and universal file converter with PDF editing, batch processing, and syntax highlighting",
|
|
"main": "src/main.js",
|
|
"scripts": {
|
|
"start": "electron .",
|
|
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest",
|
|
"test:watch": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --watch",
|
|
"test:coverage": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --coverage",
|
|
"lint": "eslint src tests",
|
|
"lint:fix": "eslint src tests --fix",
|
|
"format": "prettier --write src tests",
|
|
"format:check": "prettier --check src tests",
|
|
"build": "electron-builder --config electron-builder.config.js",
|
|
"build:win": "electron-builder --config electron-builder.config.js --win",
|
|
"build:win-signed": "cross-env CSC_LINK=code-signing-cert.pfx electron-builder --config electron-builder.config.js --win",
|
|
"build:win-unsigned": "cross-env CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder --config electron-builder.config.js --win",
|
|
"create-cert": "powershell -ExecutionPolicy Bypass -File scripts/create-selfsigned-cert.ps1",
|
|
"build:mac": "electron-builder --config electron-builder.config.js --mac",
|
|
"build:linux": "electron-builder --config electron-builder.config.js --linux",
|
|
"build:linux-ci": "electron-builder --config electron-builder.config.js --linux deb AppImage",
|
|
"build:local": "electron-builder --config electron-builder.config.js --linux --win",
|
|
"dist": "electron-builder --config electron-builder.config.js --publish=never",
|
|
"dist:all": "electron-builder --config electron-builder.config.js -mwl",
|
|
"download-tools": "node scripts/download-tools.js",
|
|
"bundle:markitdown": "node scripts/bundle-markitdown.js",
|
|
"generate-icons": "node scripts/generate-icons.js"
|
|
},
|
|
"keywords": [
|
|
"markdown",
|
|
"pandoc",
|
|
"converter",
|
|
"editor",
|
|
"pdf",
|
|
"audio",
|
|
"video",
|
|
"image"
|
|
],
|
|
"author": "ConcreteInfo <amit.wh@gmail.com>",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/amitwh/markdown-converter"
|
|
},
|
|
"devDependencies": {
|
|
"@testing-library/dom": "^10.4.1",
|
|
"cross-env": "^10.0.0",
|
|
"electron": "^41.1.1",
|
|
"electron-builder": "^26.0.12",
|
|
"eslint": "^9.39.2",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"eslint-plugin-prettier": "^5.5.4",
|
|
"jest": "^30.2.0",
|
|
"jest-environment-jsdom": "^30.2.0",
|
|
"prettier": "^3.7.4"
|
|
},
|
|
"dependencies": {
|
|
"@cantoo/pdf-lib": "^2.9.1",
|
|
"@codemirror/autocomplete": "^6.20.1",
|
|
"@codemirror/commands": "^6.10.2",
|
|
"@codemirror/lang-css": "^6.3.1",
|
|
"@codemirror/lang-html": "^6.4.11",
|
|
"@codemirror/lang-javascript": "^6.2.5",
|
|
"@codemirror/lang-json": "^6.0.2",
|
|
"@codemirror/lang-markdown": "^6.5.0",
|
|
"@codemirror/lang-python": "^6.2.1",
|
|
"@codemirror/language": "^6.12.2",
|
|
"@codemirror/lint": "^6.9.5",
|
|
"@codemirror/search": "^6.6.0",
|
|
"@codemirror/state": "^6.5.4",
|
|
"@codemirror/theme-one-dark": "^6.1.3",
|
|
"@codemirror/view": "^6.39.16",
|
|
"@replit/codemirror-vim": "^6.4.0",
|
|
"codemirror": "^6.0.2",
|
|
"core-util-is": "^1.0.3",
|
|
"docx": "^9.6.0",
|
|
"dompurify": "^3.3.1",
|
|
"electron-store": "^10.1.0",
|
|
"ffmpeg-static": "^5.3.0",
|
|
"figlet": "^1.8.0",
|
|
"highlight.js": "^11.11.1",
|
|
"html2pdf.js": "^0.14.0",
|
|
"jszip": "^3.10.1",
|
|
"katex": "^0.18.5",
|
|
"marked": "^17.0.3",
|
|
"marked-footnote": "^1.4.0",
|
|
"marked-highlight": "^2.2.3",
|
|
"mermaid": "^11.12.3",
|
|
"pdfjs-dist": "^5.5.207",
|
|
"pdfkit": "^0.17.2",
|
|
"pizzip": "^3.2.0",
|
|
"sharp": "^0.35.4",
|
|
"simple-git": "^3.32.3",
|
|
"tslib": "^2.8.1"
|
|
},
|
|
"overrides": {
|
|
"jszip": "^3.10.1",
|
|
"nth-check": "^2.1.1",
|
|
"lodash.pick": "npm:lodash@^4.17.21",
|
|
"lodash-es": "^4.18.1",
|
|
"lodash": "^4.17.21"
|
|
}
|
|
}
|