Markdowntown is a simple but flexible library to convert Markdown into an NSAttributedString
. It uses Apple's new Swift Markdown library to navigate through a Markdown tree and convert elements into a styled attributed string. A default set of styles are applied for quick out-of-the-box usage, but a stylesheet can be applied giving full control over how each element is styled.
- a simple API for quick rendering
- flexible stylesheet allowing customization of each Markdown element
- Paragraphs
- Text
- Emphasis
- Strong
- Inline Code
- Code Block
- Links
- Unordered Lists
- Unordered Lists (Checkboxes)
- Ordered Lists
- Headings
- Block Quote
- Thematic Breaks
- Strikethrough
- Tables
- Images
- Symbolic Link
- Custom Blocks
- HTML Blocks