SwiftUI + WKWebView hybrid app for viewing markdown files with: - 20 built-in color themes (Catppuccin, Dracula, Nord, Gruvbox, etc.) - Full theme editor with live preview, custom CSS, and font selection - File watching with live reload and scroll position preservation - External editor integration with configurable app list - Frontmatter display options (hide, metadata, raw markdown) - Global custom CSS support - Find in document (Cmd+F) with match count - Theme cycling via Cmd+Shift+Up/Down - Registered as .md file handler Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
26 lines
582 B
Swift
26 lines
582 B
Swift
// swift-tools-version: 5.9
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "markdownViewr",
|
|
platforms: [
|
|
.macOS(.v13)
|
|
],
|
|
dependencies: [
|
|
.package(url: "https://github.com/apple/swift-markdown.git", from: "0.4.0")
|
|
],
|
|
targets: [
|
|
.executableTarget(
|
|
name: "markdownViewr",
|
|
dependencies: [
|
|
.product(name: "Markdown", package: "swift-markdown")
|
|
],
|
|
path: "markdownViewr",
|
|
resources: [
|
|
.process("Resources")
|
|
]
|
|
)
|
|
]
|
|
)
|