A beautiful, modern markdown viewer with advanced features and Apple-inspired design, built for security-conscious users who value privacy and aesthetics.
xsukax Markdown Viewer is a client-side web application that provides a sophisticated interface for viewing and rendering markdown files. Built with a focus on privacy and security, the application processes files entirely locally without requiring any server uploads or external dependencies beyond CDN-hosted libraries.
The application features a clean, Apple-inspired interface with full markdown support, syntax highlighting, interactive Mermaid diagrams, and seamless theme switching. It's designed to work efficiently on both desktop and mobile devices while maintaining the highest standards of data privacy.
- Zero Data Transmission: All file processing occurs locally in your browser - no files are uploaded to external servers
- No Tracking: The application doesn't include any analytics, tracking scripts, or data collection mechanisms
- Client-Side Execution: Complete isolation from server-side vulnerabilities since everything runs in your browser
- Content Security: Built-in XSS protection through proper HTML sanitization and secure rendering practices
- File Isolation: Each file is processed in a sandboxed environment without persistent storage
- No External Dependencies: Only trusted CDN sources for essential libraries (marked.js, highlight.js, mermaid.js)
- No User Data Collection: The application doesn't collect, store, or transmit any personal information
- Offline Capable: Once loaded, the application can function without internet access for file processing
- Transparent Code: Open-source implementation allows for complete code inspection and verification
- Full Markdown Support: Comprehensive rendering of all standard markdown syntax with GFM extensions
- Mermaid Diagram Integration: Native support for rendering complex diagrams and flowcharts
- Syntax Highlighting: Beautiful code highlighting with theme-adaptive colors
- Dual Theme System: Seamless light/dark mode switching with persistent preferences
- Mobile-First Design: Fully responsive interface optimized for all screen sizes
- Drag & Drop Interface: Intuitive file handling with visual feedback
- Privacy-Focused: Unlike cloud-based alternatives, your documents never leave your device
- Performance Optimized: Lightning-fast rendering even with large markdown files
- No Installation Required: Runs directly in modern web browsers without complex setup
- Apple-Inspired UI: Professional, accessible design language familiar to macOS and iOS users
- Mermaid v10.9.1: Latest diagram rendering capabilities with theme adaptation
- Download the
index.htmlfile to your local machine - Open the file directly in your web browser by double-clicking it
# For local development server
python3 -m http.server 8000
# Or using Node.js
npx http-server
# Then access via http://localhost:8000- Modern web browser (Chrome 90+, Firefox 88+, Safari 14+, Edge 90+)
- JavaScript enabled
- Local file access permissions (for file:// protocol usage)
flowchart LR
A[π Local Markdown File] --> B{Loading Method}
B --> C[π― Drag & Drop]
B --> D[π Click to Browse]
C --> E[π Content Processing]
D --> E
E --> F[β¨ Rendered Output]
style A fill:#007aff,stroke:#fff,stroke-width:2px,color:#fff
style F fill:#34c759,stroke:#fff,stroke-width:2px,color:#fff
- Open the Application: Launch
index.htmlin your web browser - Load a File: Use either method:
- Drag & Drop: Drag any
.mdor.markdownfile onto the upload area - Click to Browse: Click the upload area and select a file from your system
- Drag & Drop: Drag any
- View Content: The rendered markdown will display immediately with full formatting
Include code blocks with mermaid language specification:
```mermaid
graph TD
A[Start] --> B{Decision}
B -->|Yes| C[Action 1]
B -->|No| D[Action 2]
C --> E[End]
D --> E
```- Click the theme toggle switch to switch between light and dark modes
- Theme preference is preserved during your session
- Diagrams and syntax highlighting adapt automatically to the current theme
- The interface is fully optimized for touch devices
- All functionality works identically on mobile browsers
- Responsive design ensures optimal viewing on any screen size
flowchart TB
subgraph User Interface
A[Upload Area] --> B[Content Renderer]
C[Theme Toggle] --> D[Status Display]
end
subgraph Processing Engine
E[File Reader] --> F[Marked.js Parser]
F --> G{Mermaid Content?}
G -->|Yes| H[Mermaid Renderer]
G -->|No| I[Highlight.js]
H --> J[Final Output]
I --> J
end
subgraph Security Layer
K[Local File Access] --> L[Content Sanitization]
M[No External Calls] --> N[Client-Only Processing]
end
B --> E
J --> B
L --> F
style K fill:#ff9500,stroke:#fff,stroke-width:2px,color:#fff
style M fill:#ff9500,stroke:#fff,stroke-width:2px,color:#fff
- File Not Loading: Ensure you're using a valid
.mdor.markdownfile - Diagrams Not Rendering: Check Mermaid syntax and ensure proper code block labeling
- Theme Not Switching: Verify JavaScript is enabled in your browser
- β Chrome/Edge 90+
- β Firefox 88+
- β Safari 14+
β οΈ Older browsers may have limited functionality
This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.
- Freedom to Use: You are free to use this software for any purpose
- Freedom to Study: Access to source code allows modification and study
- Freedom to Share: You can distribute original or modified versions
- Copyleft: Modifications must remain under the same license
While this is primarily a standalone application, suggestions and improvements are welcome. Please ensure any contributions align with the project's focus on privacy and security.
For issues or questions:
- Check the troubleshooting section above
- Ensure you're using a supported browser version
- Verify your markdown file syntax is correct
xsukax Markdown Viewer - Where beautiful design meets uncompromising privacy.