# drhenriquetea/mdlook architecture

> Architecture diagram of the GitHub repository drhenriquetea/mdlook, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/drhenriquetea/mdlook
- Repository: https://github.com/drhenriquetea/mdlook

## Overview

MDLook is a portable Windows Markdown editor. Its documented workflow is to open a Markdown file, read it rendered or edit it in a split-pane view with live preview, then save or export it. The README also describes navigation, presentation, appearance, and Windows integration features. The supplied tree contains no application source files, so implementation paths and internal call relationships cannot be verified; runtime nodes therefore have null paths, and documented relationships cite README.md.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_documents["Document lifecycle"]
  node_markdown["Markdown file"]
  node_app["MDLook"]
  node_file_open["Open and recent files"]
  node_windows["Document windows"]
  node_file_watch["Disk-change reload"]
  node_save["Direct save"]
end

subgraph group_rendering["Editing and rendering"]
  node_editor["Split-pane editor"]
  node_renderer["Markdown preview"]
  node_math["KaTeX math"]
  node_diagrams["Mermaid diagrams"]
  node_highlight["Syntax and color highlighting"]
  node_export["HTML and PDF export"]
end

subgraph group_interaction["Reading and navigation"]
  node_outline["Outline sidebar"]
  node_reading_tools["Reading controls"]
  node_find["Find in document"]
  node_appearance["Theme and layout"]
  node_teleprompter["Teleprompter"]
end

subgraph group_platform["Windows and settings"]
  node_file_association["Markdown association"]
  node_settings["Per-file settings"]
  node_webview["Windows WebView2"]
end

node_user(("User"))
node_github["GitHub releases"]

node_user -->|"opens file"| node_file_open
node_file_association -->|"opens Markdown"| node_file_open
node_file_open -->|"reads"| node_markdown
node_file_open -->|"opens document"| node_windows
node_windows -->|"presents editor"| node_editor
node_markdown -->|"renders"| node_renderer
node_editor -->|"previews edits"| node_renderer
node_renderer -->|"renders equations"| node_math
node_renderer -->|"renders diagrams"| node_diagrams
node_renderer -->|"highlights content"| node_highlight
node_editor -->|"saves changes"| node_save
node_save -->|"writes"| node_markdown
node_file_watch -->|"detects changes"| node_markdown
node_file_watch -->|"prompts before reload"| node_windows
node_user -->|"navigates headings"| node_outline
node_user -->|"uses controls"| node_reading_tools
node_user -->|"searches document"| node_find
node_user -->|"changes appearance"| node_appearance
node_user -->|"starts scrolling"| node_teleprompter
node_user -->|"exports document"| node_export
node_windows -->|"remembers position"| node_settings
node_app -->|"uses"| node_webview
node_app -.->|"checks releases daily"| node_github

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_markdown,node_app,node_file_open,node_windows,node_file_watch,node_save,node_user toneBlue
class node_editor,node_renderer,node_math,node_diagrams,node_highlight,node_export toneAmber
class node_outline,node_reading_tools,node_find,node_appearance,node_teleprompter toneMint
class node_file_association,node_settings,node_webview toneRose
class node_github toneIndigo
```

## Components

### Document lifecycle

- **Markdown file**
- **MDLook**
- **Open and recent files**
- **Document windows**
- **Disk-change reload**
- **Direct save**

### Editing and rendering

- **Split-pane editor**
- **Markdown preview**
- **KaTeX math**
- **Mermaid diagrams**
- **Syntax and color highlighting**
- **HTML and PDF export**

### Reading and navigation

- **Outline sidebar**
- **Reading controls**
- **Find in document**
- **Theme and layout**
- **Teleprompter**

### Windows and settings

- **Markdown association**
- **Per-file settings**
- **Windows WebView2**

### Other components

- **User**
- **GitHub releases**

## Connections

- User → Open and recent files: opens file (evidence: `README.md`)
- Markdown association → Open and recent files: opens Markdown (evidence: `README.md`)
- Open and recent files → Markdown file: reads (evidence: `README.md`)
- Open and recent files → Document windows: opens document (evidence: `README.md`)
- Document windows → Split-pane editor: presents editor (evidence: `README.md`)
- Markdown file → Markdown preview: renders (evidence: `README.md`)
- Split-pane editor → Markdown preview: previews edits (evidence: `README.md`)
- Markdown preview → KaTeX math: renders equations (evidence: `README.md`)
- Markdown preview → Mermaid diagrams: renders diagrams (evidence: `README.md`)
- Markdown preview → Syntax and color highlighting: highlights content (evidence: `README.md`)
- Split-pane editor → Direct save: saves changes (evidence: `README.md`)
- Direct save → Markdown file: writes (evidence: `README.md`)
- Disk-change reload → Markdown file: detects changes (evidence: `README.md`)
- Disk-change reload → Document windows: prompts before reload (evidence: `README.md`)
- User → Outline sidebar: navigates headings (evidence: `README.md`)
- User → Reading controls: uses controls (evidence: `README.md`)
- User → Find in document: searches document (evidence: `README.md`)
- User → Theme and layout: changes appearance (evidence: `README.md`)
- User → Teleprompter: starts scrolling (evidence: `README.md`)
- User → HTML and PDF export: exports document (evidence: `README.md`)
- Document windows → Per-file settings: remembers position (evidence: `README.md`)
- MDLook → Windows WebView2: uses (evidence: `README.md`)
- MDLook → GitHub releases: checks releases daily (evidence: `README.md`)
