A drop-in component for real-time Markdown syntax highlighting in iOS and macOS text views.
Marklight is a Markdown syntax highlighter for iOS and macOS that provides real-time visual highlighting in user-editable text views. It solves the problem of making Markdown editing more intuitive by color-coding syntax elements like headers, code blocks, and quotes as users type, without requiring full Markdown parsing.
iOS and macOS developers building apps with Markdown editing features, such as note-taking apps, documentation tools, or content editors where users write in Markdown.
Developers choose Marklight for its simplicity, performance, and seamless integration—it's a drop-in component that works with any text view, offers extensive customization, and focuses exclusively on highlighting without the overhead of a full Markdown parser.
Markdown syntax highlighter for iOS
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Works with any UITextView or NSTextView via MarklightTextStorage, requiring minimal setup as shown in the sample code.
Built as a struct and NSTextStorage subclass for efficient real-time highlighting, emphasized in the features list.
Allows setting colors and fonts for syntax, code blocks, and quotes to match app design, detailed in the usage section.
Supports iOS 8+ and macOS 10.11+ with both Swift and Objective-C, making it versatile for cross-platform apps.
Excludes Markdown parsing or HTML generation, requiring additional libraries for full processing, as noted in the philosophy.
The README admits crashes when preloading text, necessitating a workaround that adds extra steps to integration.
Missing parsing and performance tests, listed as unchecked in features, which could impact reliability for edge cases.