swi

SwiftMark

[⚠️Not a complete implementation] A Markdown renderer written in Swift.

Showing:

Popularity

Downloads/wk

0

GitHub Stars

77

Maintenance

Last Commit

4yrs ago

Contributors

0

Package

Dependencies

0

License

MIT

Categories

Readme

SwiftMark

Build Status

SwiftMark is a Markdown to HTML renderer built in Swift.

#pureswift

Usage

SwiftMark is a SwiftPM package (though versions 1.0.0 to 1.3.0 also work as a CocoaPod). Add this line to your dependencies array in your Package.swift:

Package(url: "https://github.com/calebkleveter/SwiftMark.git", majorVersion: 1)

Using SwiftMark is very simple. Just create a renderer, call render, and pass in the Markdown text.

do {
   let renderer = MarkdownRenderer()
   let html = try renderer.render(markdownText)
} catch let rror {
    print(error)
}

The result of the .render() method is the HTML form of the Markdown text passed in.

License

The whole SwiftMark package is under the MIT license agreement.

Attribution

Thanks to @matthewcheok and his tutorial on Writing a Lexer in Swift.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100