function createWelcomeContent(recentFiles = []) {
const recentHtml = recentFiles.length
? recentFiles.map(f => {
const name = f.split(/[/\\]/).pop();
return `
${name}${f}
`;
}).join('')
: 'No recent files
';
return `
MarkdownConverter
Version 4.0.0
Professional Markdown Editor & Universal Document Converter
Quick Start
+
New Document
Create a blank document
Ctrl+N
📂
Open File
Open an existing file
Ctrl+O
📋
From Template
Start from a template
⌘
Command Palette
Search all actions
Ctrl+Shift+P
What's New in v4.0.0
- CodeMirror Editor — Syntax highlighting, code folding, multiple cursors
- Sidebar Panels — File Explorer, Git, Snippets, Templates
- Command Palette — Quick access to all actions
- Code Execution — Run JS, Python, Bash from code blocks
- Print Preview — Full print customization dialog
- New Formats — Reveal.js, YAML, JSON, Confluence, and more
- Spell Checking — System dictionary with suggestions
- Markdown Extensions — Footnotes, admonitions, TOC
- Image Handling — Paste and drag-drop images
- PlantUML — Diagram rendering in preview
Recent Files
${recentHtml}
`;
}
module.exports = { createWelcomeContent };