{"repo":"keitaoouchi/MarkdownView","free":true,"listed":false,"github":"https://github.com/keitaoouchi/MarkdownView","clone":"git clone https://github.com/keitaoouchi/MarkdownView.git","description":"Markdown View for iOS.","language":"HTML","stars":2179,"topics":["ios","swift","markdown"],"license":"MIT","category":"mobile-apps","readme_excerpt":"MarkdownView A WKWebView-based Markdown renderer for iOS. Converts Markdown to HTML using markdown-it with syntax highlighting by highlight.js. Features - Renders Markdown as styled HTML inside a native UIView - Syntax highlighting for code blocks via highlight.js - Dark mode support (automatic, via prefers-color-scheme ) - Custom CSS injection - markdown-it plugin support (e.g., KaTeX math) - External stylesheet loading - Intrinsic content size for Auto Layout integration - Link tap handling - SwiftUI support via MarkdownUI Requirements Target Version -------- --------- iOS = 16.0 Swift = 6.0 Installation MarkdownView is available through Swift Package Manager. Swift Package Manager Alternatively, you can add the package directly via Xcode (File Add Package Dependencies). Quick Start UIKit SwiftUI API Reference MarkdownView (UIKit) Initializers Signature Description ----------- ------------- init() Creates a view with default settings. Call reconfigure() then render(markdown:) to display content. init(css: String?, plugins: [String]?, stylesheets: [URL]? = nil, styled: Bool = true) Pre-configures a web view with CSS, plugins, and stylesheets. Use with render(markdown:) for efficient updates. init?(coder: NSCoder) Interface Builder support. Properties Name Type Default Description ------ ------ --------- ------------- isScrollEnabled Bool true Controls whether the internal web view scrolls. Set false when embedding in a UIScrollView . onTouchLink ((URLRequest) - Bool)? nil Ca","default_branch":null,"files":null,"tree":[],"storefront":"/r/keitaoouchi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/keitaoouchi/MarkdownView/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}