{"repo":"weihas/WKMarkdownView","free":true,"listed":false,"github":"https://github.com/weihas/WKMarkdownView","clone":"git clone https://github.com/weihas/WKMarkdownView.git","description":"A local Markdown webview renderer for iOS with optional LaTeX support. Fully self-contained, no network required.","language":"Swift","stars":17,"topics":["concurrency","ios","katex","latex","markdown","marked","spm","swift","webview","local"],"license":"MIT","category":"mobile-apps","readme_excerpt":"WKMarkdownView A lightweight Swift component for rendering Markdown and KaTeX math inside a WKWebView , all using local resources . --- Features - ✅ Render Markdown via marked.js - ✅ Support for inline and block LaTeX using KaTeX - ✅ Light/Dark mode via prefers-color-scheme - ✅ Modern async Swift API using async/await - ✅ Dynamically get content height for flexible layouts - ✅ Fully offline: all resources are bundled locally - ✅ SwiftUI support with automatic height adjustment --- Requirements - iOS 13.0+ - Swift 5.5+ - Xcode 13.0+ --- Installation Swift Package Manager To install WKMarkdownView using the Swift Package Manager, add it to the dependencies in your Package.swift file: --- Quick Start WKMarkdownView offers a native SwiftUI view that automatically handles rendering and resizing. This is the easiest way to get started. Advanced Usage UIKit Integration You can also use WKMarkdownView directly in a UIKit project. Getting Content Height For manual layout calculations, you can asynchronously retrieve the rendered content's height. Disabling LaTeX Support If you don't need math rendering, you can disable it during initialization to save resources. --- Contributing Contributions, issues, and feature requests are welcome! Feel free to check the issues page. --- License WKMarkdownView is available under the MIT license. See the LICENSE file for more info.","default_branch":null,"files":null,"tree":[],"storefront":"/r/weihas","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/weihas/WKMarkdownView/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."}