Markdown-to-Video Roadmap
Vision
- Markdown-to-Video Generator: Write markdown, export video—powered entirely by native web technologies
- Markdown controls everything: Content, timing, transitions, templates, and visual styling all defined in
.mdfiles - Self-contained architecture: Built on Electron + native Web APIs (Canvas, MediaRecorder, Web Audio, File System)
- Flexible slide creation: Multiple slide break modes (
---separators,# H1headers,## H2headers, or auto-detection)
Core Philosophy: Markdown as Video Source
- Input: Markdown file with YAML frontmatter for video configuration
- Parser: Custom
MarkdownParserextracts slides, metadata, and asset references - Renderer: Canvas-based slide compositor using HTML/CSS → Canvas 2D API
- Encoder: Native MediaRecorder API generates WebM video streams today, with planned OS-level pipelines (Media Foundation, AVFoundation, GStreamer) delivering MP4/GIF output without third-party libraries
- Export: Files saved via secure IPC bridge with path validation
Guiding Principles
- Markdown-first workflow: Deck authoring, timeline preview, and video export driven by
.mdsource - Native APIs only: MediaRecorder (video encoding), Canvas 2D (rendering), Web Audio (future audio mixing)
- Preview = Export fidelity: Same timeline engine powers live preview and final video output
- Security-first: All file I/O flows through
security-core.jswith path validation and rate limiting - Zero-config experience: Sensible defaults with frontmatter-based overrides and shareable presentation presets
Completed Foundation
- Markdown-to-HTML pipeline in the Electron renderer.
- Baseline slide templates, theming, and live preview.
- Project structure separating main, renderer, and shared modules.
- Refactored renderer UI (
src/renderer/index.html) into a markdown-first workflow with restored Templates tab. - Comprehensive Markdown Syntax Dictionary (
markdown-syntax.js) - 50+ patterns supporting CommonMark + GFM - Auto-pagination System (
slide-paginator.js) - Intelligent slide splitting based on visual line count (max 6 lines/slide) - Interactive Preview Controls - Pause/resume with click, Space, P, ESC keyboard shortcuts
- Dark Blue Theme - Complete UI redesign with cohesive color scheme (#0a1628 background, #3b82f6 primary)
Immediate Sprint Focus (Current Work)
Phase 1: Core Functionality (COMPLETED)
Rebuild
src/renderer/js/app.js– Complete renderer controller:- Parse markdown via
MarkdownParserwhen user clicks "Sync Markdown" - Extract frontmatter (template, video.*, theme.accent) and body content
- Generate slide array with auto-calculated durations based on content density
- Populate Timeline tab with per-slide timings, page indicators, line counts, and duration
- Update stage preview rendering with full markdown syntax support
- Apply selected template and accent color to CSS variables
- Enable Preview Timeline with pause/resume controls (click, Space, P, ESC)
- Full support for 15+ content types (H1-H6, lists, tables, blockquotes, code, HTML, etc.)
- Continuation markers for paginated slides ("↪ continued", "continues →")
- Page indicators in top-right corner of slides
- Parse markdown via
Extend
src/shared/markdown-parser.jsto:- Emit scene-level metadata including slide index, title, subtitle, and content items
- Calculate per-slide durations using heuristics (H1=2s, list items=1s each, text=0.3s per word, code=0.5s per line)
- Support frontmatter parsing for template ID, video settings, and custom metadata
- Return asset references (images from
syntax) for checklist validation - Provide
getSummary()method returning totalSlides, paginatedSlides, estimatedDuration, and titles - NEW: Integration with MarkdownSyntax dictionary for comprehensive pattern recognition
- NEW: Auto-pagination support with
enablePaginationandmaxLinesPerSlideoptions - NEW: Visual line tracking - slides include
visualLines,totalPages,pageNumberproperties
Wire template selection bidirectionally:
- Clicking a template card in Templates tab updates
state.template - Upsert
template: <id>into markdown frontmatter viaupsertFrontmatterValue() - Trigger
syncMarkdown()to refresh timeline and reapply template CSS - Show active template name in "Active template:" hint label
- Clicking a template card in Templates tab updates
Surface validation diagnostics:
- Show/hide
markdownDiagnosticspanel based on parse success/failure - Display human-friendly error messages (e.g., "Missing closing frontmatter delimiter", "Invalid slide structure")
- Highlight unsynced state when editor content changes before next sync
- Clear diagnostics automatically on successful sync
- Show/hide
New Features Completed Beyond Original Scope
1. Comprehensive Markdown Syntax Dictionary (src/shared/markdown-syntax.js)
- 50+ regex patterns covering CommonMark + GitHub Flavored Markdown
- Block-level syntax: ATX headings (# to ######), Setext headings (underlines), unordered lists (-, *, +), ordered lists, task lists, code blocks (fenced and indented), tables, blockquotes, horizontal rules, HTML blocks
- Inline syntax: bold (text), italic (text), strikethrough (
text), inline code (code), links, images - Special syntax: YAML frontmatter, footnotes, math blocks (LaTeX)
- API:
detectBlockType(line, nextLine)andparseInline(text)methods - Documentation:
MARKDOWN_SYNTAX.md(EN/TH) with complete syntax reference
2. Auto-pagination System (src/shared/slide-paginator.js)
Status: Needs Integration with Presentation Rendering - Currently standalone, not yet used in actual rendering
- Visual line calculation with content-specific weights:
- H1 = 2.5 lines, H2 = 2 lines, H3-H6 = 1.5-1 lines
- List/blockquote items = 1.2 lines each
- Code blocks = 1 line per line (more readable)
- Tables = 2.5 (header) + rows × 0.8
- Images = 4 lines, HTML = 3 lines
- Intelligent splitting algorithms:
- Balanced page distribution (30% threshold)
- Smart block splitting for code, tables, blockquotes
- Atomic blocks (images, HTML, HR) never split
- Continuation markers automatically added
- API:
applyPagination(slides, config)returns paginated slide array - Documentation:
AUTO_PAGINATION.md(EN/TH) with examples and algorithm details
Required Work:
- Integrate with Smart Layout Engine: Use line calculation logic with
ensureContentWithinBounds() - Integrate with Slide Renderer: Make slides split automatically during actual rendering, not just parsing
- Configure via Presentation Settings: Add
maxLinesPerSlideto presentation-config.js - Work with Safe Zones: Calculate actual available space before splitting slides
3. Interactive Preview Controls
- Pause/resume mechanism:
- Click anywhere on preview stage to pause/resume (preview mode only)
- Keyboard shortcuts: Space or P to toggle, ESC to stop preview
- Promise-based waiting with 100ms polling for instant response
4. Presentation Mode (PowerPoint-style Navigation)
- Manual slide navigation with forward/back controls:
- "Presentation Mode" button alongside main controls
- Left/Right arrow buttons for navigation
- Keyboard shortcuts: ← → for prev/next, Space for next, Home/End for first/last
- Slide counter display (e.g., "1 / 15")
- ESC to exit presentation mode
- Fullscreen support:
- Fullscreen button in top-right corner during presentation
- F key toggle for fullscreen
- Proper fullscreen styling (borderless, full viewport)
- Visual design:
- Semi-transparent navigation controls at bottom center
- Circular prev/next buttons with hover effects
- Disabled state for first/last slide boundaries
- Backdrop blur for better readability
5. Application Reset Function
- Reset Button after Export Video
- Reset application to initial state
- Clear all markdown content and slides
- Reset all settings to defaults
- Confirmation dialog before execution
- Automatically stop playback or presentation
- Reset template to 'modern'
- Clear timeline and asset checklist
6. Programmer's PowerPoint - Code Editor Themes
- New Code Editor Style Themes in templates.js:
- Monokai: Classic theme with warm tones (magenta, green, cyan)
- Solarized Dark: Precision colors designed for readability
- SynthWave '84: Retro futuristic 80s aesthetic (hot pink, mint, yellow)
- Dracula: Dark theme for night coders
- Full syntax highlighting support with theme-specific colors
- Enhanced Content Styles in style.css:
.content-h1: Gradient text with glow effect.content-h2: Border-left accent with text shadow.content-blockquote: Styled quote marks with inset shadow.content-code-block: Top gradient border with hover animation- Syntax highlighting colors: keyword, string, number, comment, function, variable
- Advanced Transitions in slide-renderer.js:
- Glitch: Digital glitch effect with random offsets and hue rotation
- Matrix: Digital rain effect simulation
- Cube: 3D cube rotation transition
- Pixelate: Blur-based pixelation effect
- CSS Animations:
@keyframes matrixScroll: Scrolling matrix effect@keyframes glitchSkew: Skew animation for glitch@keyframes pixelateIn: Blur in animation@keyframes codeHighlight: Code block hover glow@keyframes textGlow: Heading pulsing glow effect
- Visual feedback:
- Pause overlay with semi-transparent backdrop (blur 8px)
- Large pause icon with pulse animation
- Instructions: "Paused" text + keyboard hints
- Z-index 1000 for always-on-top display
- State management:
isPausedboolean flagpauseResolvefunction reference for promise resolution- Cleanup on preview stop
- Documentation:
PREVIEW_CONTROLS.md(EN/TH) with usage guide
7. Enhanced Timeline Visualization
- Pagination indicators: Show "[1/2]", "[2/2]" badges for multi-page slides
- Line count display: "8 lines", "5 lines" to show content density
- Continuation indicators: "↪ continued" for split content
- Duration display: Accurate timing per slide with total duration
8. Smart Layout Measurement & Safe Zones
- Introduced shared
SMART_SAFE_ZONEheuristics and padding helpers to derive consistent insets for measurement and stage rendering - Synced typography, screen-type classes, and scene structure between the hidden measurement stage and the live stage frame
- Reused measurement-stage results to auto-scale overflowing content while keeping metadata (
data-safe-*) available for diagnostics - Filtered preview carry-over to exclude heading blocks and rely on authored titles instead of synthetic "Slide N" labels
9. Presentation Configuration System (src/renderer/js/presentation-config.js)
- Replaced rigid template catalogue with flexible presentation settings presets (fonts, clamp sizes, colors, backgrounds, animations)
- Introduced configuration API (
getCurrentConfig,setConfig,updateConfigPart,loadPreset,resetConfig) for fine-grained control - Defined curated preset families (Default, Professional, Minimal, Creative) plus font/background/transition option catalogs
- Auto-applies presentation variables to CSS custom properties (fonts, font sizes, colors, safe spacing) without external libraries
- Supports JSON import/export for sharing configuration profiles across markdown decks
- Typography & Layout Controls - Complete document formatting system:
- Font size controls (H1, H2, Body Text) with responsive clamp (min, base vw, max)
- Line height adjustments (heading, body) for optimal readability
- Paragraph spacing controls (before/after) in rem units
- Heading spacing controls (before/after) for visual hierarchy
- Indentation controls (first-line, blockquote) for document structure
- List indent and text alignment options (left, center, right, justify)
- UI & Visual Effects Configuration:
- Preview slide opacity control (0-1 range)
- Pause overlay blur effect (px)
- Navigation button border width (px)
- Gradient backdrop effects (spread %, blur px)
- Border & Accent Width Controls:
- Heading accent border width (H2 left border)
- Blockquote border width (left accent line)
- Image border width (frame around images)
- Link underline thickness
- Table border width (grid lines)
- Horizontal rule (HR) border width
- Single Source of Truth Architecture:
- All default values centralized in
CONFIG_PRESETS.default.config - CSS variables dynamically applied via
applyConfigToDOM() - Live preview with instant feedback on all changes
- Bidirectional sync between UI controls and configuration
- Frontmatter persistence (save/load all settings to markdown YAML)
- All default values centralized in
- Developer Experience:
- Zero hardcoded values in CSS or JavaScript
- Maintainable: change one config value, updates everywhere
- Extensible: easy to add new styling properties
- Type-safe: clear property structure with fallback values
Demo Files Created
-
workspace/complete-syntax-demo.md- 25 slides demonstrating all Markdown syntax patterns -
workspace/pagination-demo.md- 20+ slides showing auto-pagination with various content lengths
Latest Updates (October 2025)
10. Mode Isolation System (Exclusive Mode Switching)
Problem Identified: UI elements from different modes were overlapping and causing conflicts in display and functionality
Solution - Built a comprehensive exclusive mode switching system:
Mode Manager (src/renderer/js/mode-manager.js)
- Singleton Pattern: Created
ModeManagerclass with single instance for entire app - 3 Strictly Separated Modes:
- Intro Mode: Initial screen with no systems active (static display only)
- Presentation Mode: Presentation mode with keyboard navigation + Smart Layout only
- Editor Mode: Edit mode with content editable + drag & drop + Safe Zone border only
Robust Control System
- System Flags Tracking: Monitors active systems (smartLayout, dragDrop, contentEditable, safeZoneBorder, etc.)
- UI Visibility Control:
hideAllModeUI()- Hides all UI elements from all modesshowPresentationUI()- Shows only navigation controls, exit button, fullscreen button, edit buttonshowEditorUI()- Shows only save button, cancel button, exit button
- Smart Layout Management:
- Intro Mode:
detach()observers completely - Presentation Mode:
reattach()observers for auto-adjustment - Editor Mode:
detach()observers to prevent resizing during editing
- Intro Mode:
- Mode Switching Flow:
switchMode(newMode) { 1. shutdownMode(currentMode) // Shutdown old mode completely 2. currentMode = newMode // Change mode 3. setDisplayMode(newMode) // Update config 4. activateMode(newMode) // Activate new mode exclusively 5. dispatch 'modeChanged' event }
Integration with Existing Systems
app.js Integration:
init(): CallsswitchToIntroMode()instead ofsetDisplayMode('intro')startPresentationMode(): CallsswitchToPresentationMode()exitPresentationMode(): CallsswitchToIntroMode()- Removed all manual UI show/hide logic (Mode Manager handles it)
slide-editor.js Integration:
enterEditMode(): CallsswitchToEditorMode()exitEditMode(): CallsswitchToPresentationMode()enterDragMode(): CallsswitchToEditorMode()exitDragMode(): CallsswitchToPresentationMode()- Removed manual Smart Layout detach/reattach (Mode Manager handles it)
- Removed manual Safe Zone show/hide (Mode Manager handles it)
Smart Layout Protection
- Guard in
ensureContentWithinBounds():function ensureContentWithinBounds() { const modeManager = getModeManager(); if (modeManager && !modeManager.isSystemActive('smartLayout')) { return; // Don't execute if Smart Layout is disabled } // ... continue with calculations }
Results
- No UI Overlap: Each mode shows only its relevant UI elements
- No Smart Layout Interference: Auto-sizing only works in Presentation Mode
- Safe Edit Mode: Editing works without interference from other systems
- Single Source of Control:
ModeManageris the only controller for all modes
Documentation and Maintenance
- Created
docs/TH/MODE_ISOLATION_FIX.mdwith detailed fix documentation - Added code comments indicating "Mode Manager handles this - no manual control needed"
- Removed redundant code from app.js and slide-editor.js
Strict Separation of 3 Display Logic Systems
Complete Separation of Three Display Logic Systems
Principle: Each display mode has completely separate logic and Safe Zone systems to prevent modifications in one area from breaking others.
1. Intro Scene System (Small Preview with UI Sidebar)
- Purpose: Display slide previews in a small area of the UI page with side control panels
- Characteristics:
- Fixed screen size (1280x720 fallback)
- Hard-coded Safe Zone optimized for small display area
- No dynamic calculation needed due to fixed dimensions
- Core Functions (marked LOCKED - do not modify):
-
getStagePreviewData()- Extract slide preview data -
renderStagePreview()- Render preview to DOM -
updateStagePreview()- Update preview when slides change
-
- Status: Working perfectly - do not modify or link to other modes
2. Presentation Mode - Small Screen (Normal Size Presentation)
- Purpose: Presentation mode on standard screens (not fullscreen) at 1920x1080 or smaller
- Characteristics:
- Supports navigation with arrow keys (← →)
- Ratio-based Safe Zone calculation for standard screens
- Safe boundaries approximately 8-9% of width/height
- Color Zones:
- Red Zone: Area outside screen bounds - no content allowed
- Green Zone: Safe area inside boundaries - content safe here
- Calculation:
- No hard-coded pixels
- Calculated from actual screen size ratio
- Formula:
safeInset = screenDimension × SAFE_ZONE_RATIO
3. Presentation Mode - Large Screen (Full Screen Large Display)
- Purpose: Fullscreen mode on large screens (2560x1440+) or projectors
- Characteristics:
- Automatic fullscreen mode entry
- Smart Layout Engine measures and optimizes content for available space
- Wider Safe Zone to accommodate projector overscan
- Color Zones (stricter than small screens):
- Red Zone: Danger area 10-15% from edge - absolutely no content
- Yellow Zone: Warning area 5-10% - content may be cut on some projectors
- Green Zone: Safe area 80% center - content displays confidently
- Calculation:
- Dynamic calculation from actual screen size
- Ratio adjusts based on screen type (normal/large/ultra)
- Example formula:
baseRatio = 0.08 (8%) maxRatio = 0.16 (16%) actualInset = clamp(screenSize × baseRatio, MIN_PIXELS, screenSize × maxRatio)
Code Protection from Modifications
- Added warning comments to all Intro Scene related functions
- Used clear
@LOCKEDandDO NOT MODIFYtags - Separated comments into large blocks with border lines (==== lines)
- Specified reasons and impacts of modifications in comments
- No emojis in comments (may cause encoding issues)
Smart Layout and Safe Zone System
- Separated Safe Zone constants for each mode
- Intro Scene uses hard-coded constants
- Presentation Mode will create separate calculation functions
- Create
computePresentationSafeZone()for presentation mode - Create
computeLargeScreenSafeZone()for large screens - Test Safe Zone calculations on multiple screen sizes
Outstanding Work
Smart Layout Engine
- Integrate Auto-pagination with Smart Layout:
- Use line calculation logic from
slide-paginator.jswithensureContentWithinBounds() - Make slides split automatically during actual rendering, not just parsing
- Calculate available space within Safe Zones before deciding to split pages
- Add
maxLinesPerSlideconfiguration to presentation-config.js
- Use line calculation logic from
- Rebuild
layout-schema.jswith a durable LayoutNode model and accurate per-section metrics aggregation - Feed the layout tree into
renderSlideToStageso DOM output follows block semantics instead of raw HTML - Extend the measurement stage to consume layout tree data and refactor line/column calculations
- Add unit tests covering smart layout behaviours (observers, smart-list balancing, layout tree diffing)
Cross-module Coordination (Markdown → Layout → Renderer)
- Author a
layout-contract.mddocument defining the shared JSON schema for slides/sections/blocks/inlines plus diagnostics - Refine
markdown-syntax.jsso it exposes a single detection/tokenization API and stores the metadata the parser requires - Update
markdown-parser.jsto consume that metadata and emit content items ready to map directly into layout blocks (e.g., link, inline emphasis) - Extend
layout-schema.jsto cover additional block types (heading, link, rich inline text) with metrics the renderer can consume immediately - Rework
app.jsto render purely from the layout tree, return measurement/diagnostic updates into the tree, and surface state changes to the UI - Introduce a feedback loop (diagnostics channel) between measurement stage ↔ layout-schema ↔ markdown-parser so heuristics can adapt
Timeline & Metadata Model
- Extend markdown frontmatter for per-slide timing, transitions, narration cues, and media assets.
- Generate a shared timeline model (scenes, tracks, assets) for preview and export.
- Implement validation with actionable errors for missing or invalid metadata.
Presentation Settings System (Template Replacement) - COMPLETED
- Replace template cards UI with configurable presentation presets powered by
presentation-config.js - Round-trip presentation settings to markdown frontmatter (fonts, colors, animation choices)
- Expose granular controls (font families, clamp ranges, backgrounds, borders, effects) with live preview updates
- Update parser/exporter to consume presentation settings instead of legacy template identifiers
- Complete Word/Excel-style Document Formatting:
- 11 UI controls for styling properties (borders, effects, visual elements)
- Typography controls (8 inputs for spacing, indentation, alignment)
- Font size controls (9 inputs for H1, H2, Text with min/base/max)
- Line height controls (2 inputs for heading and body)
- All settings saved to frontmatter with
presentation.styles.*namespace - Full English translation of all UI labels and preset descriptions
Phase 2: Enhanced Export (Next Priority)
- Browser preview consumes timeline model flawlessly with full markdown rendering
- Improve native WebM export quality:
- Enhanced MediaRecorder API with frame-perfect timing control
- Quality/bitrate configuration options (target: 1080p at 5-10 Mbps)
- Progress reporting with per-slide render updates and percentage display
- Abort/cancel functionality for long renders
- Add a render job manager handling queueing, progress reporting, and cancellations
- Export progress modal with real-time preview thumbnails
Visual Enhancements
- Support slide-specific background images/videos with aspect-ratio aware cropping.
- Introduce a declarative animation DSL covering transitions, text motion, and keyframed positioning.
- Build custom components (no external libraries):
- Chart renderer using Canvas 2D API
- Syntax highlighter using regex tokenization
- Component registry for extensible markdown → visual mappings
Audio & Narration (Future)
- Support synchronized narration tracks sourced from audio files.
- Mix audio using native Web Audio API:
- Build custom ducking algorithm for background music
- Synchronize audio with video timeline
- No external audio processing libraries
- Add scenario tests validating audio/video sync quality.
Collaboration & Templates
- Ship selectable markdown + CSS template packs within the UI.
- Provide a shared asset workspace with versioned references.
- Define naming conventions and folder layout for video-safe media assets.
Phased Implementation Plan
Phase 1 – Timeline Core (COMPLETED)
- Rebuild
app.jsto parse markdown and populate timeline UI - Extend
markdown-parser.jswith frontmatter and duration heuristics - Wire bidirectional template selection (UI ↔ frontmatter)
- Surface validation diagnostics in Markdown tab
- BONUS: Comprehensive Markdown Syntax Dictionary with 50+ patterns
- BONUS: Auto-pagination system with visual line calculation
- BONUS: Interactive preview controls (pause/resume, keyboard shortcuts)
- BONUS: Enhanced timeline visualization with pagination indicators and line metrics
- BONUS: Presentation mode with navigation controls and fullscreen support
- BONUS: Application reset workflow and safeguarded smart layout safe zones
- BONUS: Code editor themed styling plus advanced transitions/animations
- BONUS: Template-free presentation configuration system with shareable presets
- Add unit tests for parsing, timing calculations, and error cases (deferred to Phase 2)
Phase 2 – Enhanced Video Export (Next Priority)
- Improve MediaRecorder-based WebM export quality and frame timing (target: 1080p @ 5-10 Mbps)
- Implement native render progress tracking with per-slide updates and percentage display
- Add resolution/FPS/quality controls synced to frontmatter
- Support abort/cancel during export with cleanup and partial file deletion
- Export progress modal with live thumbnail preview
- Unit tests for markdown-syntax.js, slide-paginator.js, pause/resume mechanism
- Create integration tests for sample deck → video output
Native OS Encoding Roadmap (Security-first, No Third-party Libraries)
- Design shared frame extraction pipeline (HTML → RGBA buffers/PNG frames) compatible with all native encoders
- Windows: implement a sealed Media Foundation bridge that writes H.264/AAC MP4 via sandboxed worker process
- macOS: build an AVFoundation exporter (AVAssetWriter) for H.264/AAC MP4 with strict file-path validation
- Linux: integrate system GStreamer/VA-API pipeline (
appsrc → x264enc → mp4mux) executed under security-core supervision - Add GIF output using the same native pipelines (MF Transform, AVFoundation ImageDestination, or GStreamer gifenc)
- Instrument security hooks (path allow-list, rate limits, checksum validation) for every native encoder invocation
Phase 3 – Audio Integration (Future)
- Parse narration file references from slide metadata
- Load and validate audio assets via secure IPC
- Mix narration + background music using Web Audio API
- Synchronize audio with video timeline during preview and export
- Add waveform visualization in Timeline tab
Phase 4 – Visual Enhancements (Future)
- Build custom chart renderer (Canvas-based, no libraries)
- Implement syntax highlighter using regex tokenization
- Support slide-specific background images/videos
- Create declarative animation DSL for keyframe-based transitions
- Add component registry for extensible markdown → visual mappings
Phase 5 – Stabilization & Polish (Future)
- Performance profiling and asset caching optimization
- Improve error messages with contextual fix suggestions
- Documentation refresh with video tutorials
- Ship sample markdown decks demonstrating all features
Architecture Impact
- [x] Extended
src/shared/markdown-parser.js: Emits timeline JSON with scene metadata, durations, asset references, pagination info - [x] NEW
src/shared/markdown-syntax.js: Dictionary-based pattern library with 50+ regex patterns for all CommonMark + GFM syntax - [x] NEW
src/shared/slide-paginator.js: Visual line calculation and intelligent slide splitting with content-aware algorithms - New
src/shared/timeline-engine.js: Compose timeline model, calculate timecodes, manage playback state (future) - [x] Updated
src/renderer/js/app.js: Consumes parsed markdown for preview with pause/resume, timeline population, full syntax rendering, 13 new DOM references for styling controls, frontmatter save/load for all styling properties - [x] Enhanced
src/renderer/js/video-renderer.js: Canvas-based slide rendering with full markdown support (export ready, quality enhancement pending) - [x] Secure asset workspace: Standardized
workspace/folder with demo files and emoji-cleaner.js - [x] NEW
src/renderer/js/presentation-config.js: Centralised presentation settings engine replacing fixed templates with 30+ configurable properties, CSS variable system, and frontmatter integration - [x] Enhanced
src/renderer/css/style.css: Converted all hardcoded values to CSS variables (23+ new variables), added.slide-table,.slide-hr,.timeline-page-indicatorclasses for consistent theming - [x] Updated
src/renderer/index.html: Added 30+ new UI controls organized in 3 sections (UI Effects, Border Widths, Typography), full English translation, improved help text
Current Technology Stack (Updated)
- Electron 28.0.0: Desktop application framework
- MediaRecorder API: Native WebM video encoding (VP8/VP9 codec)
- Planned native encoders: Windows Media Foundation, macOS AVFoundation, Linux GStreamer/VA-API (system-provided, no third-party libraries)
- Canvas 2D API: Slide rendering from HTML/CSS → Canvas with full markdown syntax support
- Tailwind CSS (local - 407KB): UI styling loaded from
src/renderer/vendor/tailwind.js - Web Audio API (future): Native audio mixing and ducking
- Custom Modules:
- MarkdownParser (
src/shared/markdown-parser.js) - Parser with frontmatter, duration heuristics, pagination integration - MarkdownSyntax (
src/shared/markdown-syntax.js) - Pattern dictionary with 50+ regex for CommonMark + GFM - SlidePaginator (
src/shared/slide-paginator.js) - Visual line calculation and intelligent splitting - VideoRenderer (
src/renderer/js/video-renderer.js) - Canvas-based slide rendering - PresentationConfig (
src/renderer/js/presentation-config.js) - Template-free configuration presets and runtime styling engine - SecurityCore (
src/shared/security-core.js) - Path validation and rate limiting for file operations
- MarkdownParser (
Quality Strategy
- Unit tests for
markdown-syntax.js(pattern detection, inline parsing) - Unit tests for
slide-paginator.js(line calculation, splitting algorithms) - Unit tests for
markdown-parser.js(parsing, frontmatter, duration calculation, pagination integration) - Integration tests for markdown → timeline → video workflow
- Snapshot tests for rendered HTML structures
- Manual QA checklist for export quality across resolutions/FPS
- Error handling validation (missing files, invalid frontmatter, etc.)
- Pause/resume mechanism tests (promise resolution, keyboard shortcuts)
Documentation & Adoption
- Produce bilingual guides: Created 6 comprehensive documentation files
-
MARKDOWN_SYNTAX.md(EN/TH) - Complete syntax reference with examples -
AUTO_PAGINATION.md(EN/TH) - Pagination system guide with algorithms -
PREVIEW_CONTROLS.md(EN/TH) - Interactive controls usage guide
-
- Publish sample decks: Created demo markdown files
-
workspace/complete-syntax-demo.md- 25 slides demonstrating all syntax patterns -
workspace/pagination-demo.md- 20+ slides showing auto-pagination
-
- Schedule user testing sessions and collect feedback for iterative refinement
- Produce video tutorials for export workflows and troubleshooting