Hengyu/Markup

★ 0Forks 0SwiftGitHub ↗Compare

README

Markup

Render markdown and code into HTML within CSS styles.

Installation

Markup could be installed via Swift Package Manager. Open Xcode and go to File -> Add Packages..., search https://github.com/hengyu/Markup.git, and add the package as one of your project's dependency.

Usage

import Markup

let html = MarkupContent(HTMLBody: rawMarkdown, type: .markdown).html
webView.render(html, baseURL: MarkupContent.resourceURL)

Acknowledgements

License

Markup is released under the MIT License.

Contributors

Hengyu

Issues