Latest 1.0
License BSD
Platforms ios 6.0, osx 10.10


MMMarkdown is an Objective-C framework for converting Markdown to HTML. It is compatible with OS X 10.7+, iOS 8.0+, tvOS, and watchOS.

Unlike other Markdown libraries, MMMarkdown implements an actual parser. It is not a port of the original Perl implementation and does not use regular expressions to transform the input into HTML. MMMarkdown tries to be efficient and minimize memory usage.


Using MMMarkdown is simple. The main API is a single class method:

#import <MMMarkdown/MMMarkdown.h>

NSError  *error;
NSString *markdown   = @"# ExamplenWhat a library!";
NSString *htmlString = [MMMarkdown HTMLStringWithMarkdown:markdown error:&error];
// Returns @"<h1>Example</h1>n<p>What a library!</p>"

The markdown string that is passed in must be non-nil.

MMMarkdown also supports a number of Markdown extensions:

#import <MMMarkdown/MMMarkdown.h>

NSString *markdown   = @"~~Mistaken~~";
NSString *htmlString = [MMMarkdown HTMLStringWithMarkdown:markdown extensions:MMMarkdownExtensionsGitHubFlavored error:NULL];
// Returns @"<p><del>Mistaken</del></p>"


Adding MMMarkdown to your project is easy.

If you’d like to use Carthage, add the following line to your Cartfile:

github "mdiep/MMMarkdown"

Otherwise, you can:

  1. Add MMMarkdown as a git submodule. (git submodule add <path>)

  2. Add MMMarkdown.xcodeproj to your project or workspace

  3. Add MMMarkdown.framework to the ”Link Binary with Libraries" section of your project’s “Build Phases”.

  4. Add MMMarkdown.framework to a ”Copy Files” build phase that copies it to the Frameworks destination.


MMMarkdown is available under the MIT License.

Latest podspec

    "name": "ZCMarkdown",
    "version": "1.0",
    "license": {
        "type": "BSD",
        "file": ""
    "homepage": "",
    "authors": {
        "zac-wang, Inc.": ""
    "summary": "markdownu6587u4ef6u9884u89c8uff0cu5c06markdownu6587u4ef6 u8f6cu4e3a html",
    "source": {
        "git": "",
        "tag": "1.0"
    "source_files": "Source/**/*.{h,m}",
    "prefix_header_file": "Source/MMMarkdown-Prefix.pch",
    "platforms": {
        "ios": "6.0",
        "osx": "10.10"
    "ios": {
        "frameworks": "Foundation"
    "osx": {
        "frameworks": "Cocoa"

Pin It on Pinterest

Share This