Latest 0.6.0
Homepage https://github.com/AssafYehudai/MarkDownKit
License MIT
Platforms ios 8.0, osx 10.9
Authors

MarkDownKit

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

MarkDownKit is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'ChatyMarkDownKit', '~>0.1.1'

Author

AssafYehudai, [email protected]

License

MarkDownKit is available under the MIT license. See the LICENSE file for more info.

Example code

let TEXT = "`*_Lorem ipsum dolor_* sit er elit lamet, consectetaur *cillium adipisicing pecu, *sed` do eiusmod tempor incididunt ut
             labore et dolore magna aliqua. Ut enim ad minim veniam,*quis nostrud* exercitation ullamco laboris nisi `ut aliquip
             exea commodo consequat.` Duis aute irure *dolor in _reprehenderit* in voluptate_ velit esse cillum dolore eu fugiat
             null pariatur.Excepteur sint occaecat cupidatat non proident, _sunt in culpa_ qui officia deserunt mollit anim id
             est laborum. Nam liber te *conscient to factor* tum poen legum odioque civiuda."

class ViewController: UIViewController {

    @IBOutlet weak var textView: UITextView!
    @IBOutlet weak var attributesButton: UIButton!
    let fontSize = CGFloat(16)

    // MARK: - LifeCycle

    override func viewDidLoad() {
        super.viewDidLoad()
        textView.text = TEXT
        textView.font = UIFont.systemFont(ofSize: fontSize)
    }

    // MARK: - IBActions

    @IBAction func SetAttributesTapped(_ sender: UIButton) {

        textView.attributedText = MarkDown(string: TEXT, fontsSize: fontSize).markDown()
    }
}

Latest podspec

{
    "name": "ChatyMarkDownKit",
    "version": "0.6.0",
    "summary": "MarkDownKit is a kit allowing you to use markdown notation in your apps, on iOS and macOS",
    "description": "MarkDownKit Uses NSAttributedString to apply markDown featurs on text.nYou can use it for chatting apps for example.nAt the moment the kit marks *Bold* , _Italic_ and `code`.",
    "homepage": "https://github.com/AssafYehudai/MarkDownKit",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "AssafYehudai": "[email protected]"
    },
    "source": {
        "git": "https://github.com/AssafYehudai/MarkDownKit.git",
        "tag": "0.6.0"
    },
    "platforms": {
        "ios": "8.0",
        "osx": "10.9"
    },
    "source_files": "MarkDownKit/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This