GithubHelp home page GithubHelp logo

ocdiscount's Introduction

Discount Markdown Processor for iOS and OS X

Overview Build Status

Discount is an implementation of John Gruber's Markdown markup language in C. It implements all of the language described in the markdown syntax document and passes the Markdown 1.0 test suite.

Discount was developed by David Loren Parsons. OCDiscount is created and maintained by Sumardi Shukor.

Requirements

OCDiscount requires Xcode 5, targeting either iOS 6.0 and above, or Mac OS 10.8 Mountain Lion (64-bit with modern Cocoa runtime) and above.

The libdiscount.a static library must be linked into the application target for proper compilation. The steps are:

  1. In the project editor, select the target to which you want to add the library
  2. Click Build Phases at the top of the project editor.
  3. Open the Link Binary With Libraries section.
  4. Click the Add button (+) to add libdiscount.a library.

Ignore these steps if you are using CocoaPods.

Installation

CocoaPods is the recommended way to add OCDiscount to your project.

Here's an example podfile that installs OCDiscount.

Podfile

platform :osx, '10.8'
pod 'OCDiscount', '~> 0.2.0'

Then run pod install.

Usage

Depending on how you configure your project you may need to #import either <OCDiscount/OCDiscount.h> or "OCDiscount.h".

NSString *test = @"*Hello* from **markdown**!";

NSLog(@"%@", [markdown htmlStringFromMarkdown]);

Support

Bugs and feature request are tracked on Github.

Documentations

License

Discount is free software; it is released under a BSD-style license that allows you to do as you wish with it as long as you don't attempt to claim it as your own work. OCDiscount is available under the MIT license. See the LICENSE file for more info.

ocdiscount's People

Contributors

sumardi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

atheken

ocdiscount's Issues

Doesn't run on x86_64

Seems to be broken on 64-bit builds (for iOS at least).

Undefined symbols for architecture x86_64:
  "_mkd_cleanup", referenced from:
      +[OCDiscount convertMarkdownString:] in libPods.a(OCDiscount.o)
  "_mkd_compile", referenced from:
      +[OCDiscount convertMarkdownString:] in libPods.a(OCDiscount.o)
  "_mkd_document", referenced from:
      +[OCDiscount convertMarkdownString:] in libPods.a(OCDiscount.o)
  "_mkd_string", referenced from:
      +[OCDiscount convertMarkdownString:] in libPods.a(OCDiscount.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.