PulsrMarkdown

0.1

A simple markdown parser, with support for ||spoilers|| (or >!spoilers!<)
Snowy1803/PulsrMarkdown

What's New

0.1

2021-07-03T18:15:47Z

PulsrMarkdown

Provides a markdown to NSAttributedString lightweight converter. Requires UIKit, and works on iOS 13+, Mac Catalyst 13+ and watchOS 6+.

It also provides UIViews to show and edit markdown on iOS (with special support for spoilers).

Supports:

  • bold, italic, underline, strikethrough, spoilers, code (inline)
  • blockquotes, header titles, code (blocks)

Get started

If you want to use it with UIKit, import PulsrMarkdownViews and use MarkdownEditorView(generator:) to make an editable markdown text view, and MarkdownRenderedTextView(generator:) to show the result. You pass a generator, which include the set of MarkdownRule to apply (replacements and markdown attributes).

If you only need the UIKit-compatible NSAttributedString and want to implement the view yourself (or on watchOS), use MarkdownGenerator.generate(string:) (or MarkdownGenerator.generate(string:tappedIds) if you need spoiler support)

Description

  • Swift Tools 5.3.0
View More Packages from this Author

Dependencies

  • None
Last updated: Sat Oct 19 2024 21:20:26 GMT-0900 (Hawaii-Aleutian Daylight Time)