All Projects → calebkleveter → SwiftMark

calebkleveter / SwiftMark

Licence: MIT license
[⚠️Not a complete implementation] A Markdown renderer written in Swift.

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to SwiftMark

Markdown
Markdown parser written in Racket.
Stars: ✭ 93 (+20.78%)
Mutual labels:  markdown-parser
Myst Parser
An extended commonmark compliant parser, with bridges to docutils/sphinx
Stars: ✭ 157 (+103.9%)
Mutual labels:  markdown-parser
ModooCode
Repo for the Modoocode.
Stars: ✭ 42 (-45.45%)
Mutual labels:  markdown-parser
Forum
A fully-fledged modern forum app, including @mention and private messaging, built with Laravel 5.3 and Vue 2.
Stars: ✭ 135 (+75.32%)
Mutual labels:  markdown-parser
Markdown It Py
Markdown parser, done right. 100% CommonMark support, extensions, syntax plugins & high speed. Now in Python!
Stars: ✭ 156 (+102.6%)
Mutual labels:  markdown-parser
Markdig
A fast, powerful, CommonMark compliant, extensible Markdown processor for .NET
Stars: ✭ 2,730 (+3445.45%)
Mutual labels:  markdown-parser
Gopdf
pdf document generation library
Stars: ✭ 63 (-18.18%)
Mutual labels:  markdown-parser
swift-watch
Watches over your Swift project's source
Stars: ✭ 43 (-44.16%)
Mutual labels:  spm
Showdown
A bidirectional Markdown to HTML to Markdown converter written in Javascript
Stars: ✭ 12,137 (+15662.34%)
Mutual labels:  markdown-parser
Lambda
Physically based renderer written in C++
Stars: ✭ 26 (-66.23%)
Mutual labels:  renderer
Mdtool
A tool which can process markdown to HTML
Stars: ✭ 136 (+76.62%)
Mutual labels:  markdown-parser
Westwind.aspnetcore.markdown
An ASP.NET Core Markdown support library that provides Markdown parsing, a Markdown TagHelper and Markdown Page Handler Middleware
Stars: ✭ 148 (+92.21%)
Mutual labels:  markdown-parser
Markdown
A Python implementation of John Gruber’s Markdown with Extension support.
Stars: ✭ 2,725 (+3438.96%)
Mutual labels:  markdown-parser
Flexmark Java
CommonMark/Markdown Java parser with source level AST. CommonMark 0.28, emulation of: pegdown, kramdown, markdown.pl, MultiMarkdown. With HTML to MD, MD to PDF, MD to DOCX conversion modules.
Stars: ✭ 1,673 (+2072.73%)
Mutual labels:  markdown-parser
extensions-kit
📦 Collection of Swift+Apple Frameworks extensions for speeding up software development [iOS & iPadOS].
Stars: ✭ 71 (-7.79%)
Mutual labels:  spm
Laravel Smartmd
🎯 A simple markdown editor compatible most markdown parse,You can choose any parse methods on server or client,like Mathematical formula、flowchart、upload image...
Stars: ✭ 76 (-1.3%)
Mutual labels:  markdown-parser
Parsedown
Better Markdown Parser in PHP
Stars: ✭ 13,959 (+18028.57%)
Mutual labels:  markdown-parser
SchematicWebViewer
An NPM package to facilitate importing and viewing of modern Minecraft schematics.
Stars: ✭ 44 (-42.86%)
Mutual labels:  renderer
SwiftTweener
A pure Swift animation engine.
Stars: ✭ 74 (-3.9%)
Mutual labels:  pure-swift
Frontyaml
YAML Front matter parser
Stars: ✭ 248 (+222.08%)
Mutual labels:  markdown-parser

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].