Swiftpack.co - stackotter/swift-cmark-gfm as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by stackotter.
stackotter/swift-cmark-gfm v1.0.2
A minimal wrapper around cmark-gfm
⭐️ 2
🕓 1 year ago
.package(url: "https://github.com/stackotter/swift-cmark-gfm.git", from: "v1.0.2")


This package just provides an easy way to import the cmark-gfm library into Swift. It does not wrap the C API with a nice Swift API. For that, see Parsley.


Just include this package as a dependency in your Package.swift. Here's an example of how to do that:

let package = Package(
    name: "Example",
    dependencies: [
        .package(url: "https://github.com/stackotter/swift-cmark-gfm", from: "1.0.0")
    targets: [
            name: "Example",
            dependencies: [
                .product(name: "CMarkGFM", package: "swift-cmark-gfm")

Automatic updater script

The main goal of this package is to be extremely easy to maintain. That's why I made the update_cmark_gfm.sh script. Running the script will automatically update this package to the latest version of cmark-gfm.

# Update the package to the latest version of cmark-gfm

Alternatively, it can be used to update the package to a specific commit of cmark-gfm. Just provide a commit hash when running the script:

# Update the package to a specific version of cmark-gfm
./update_cmark_gfm.sh [commit]

This means that if you have a project that requires a specific version of cmark-gfm for some reason. You can easily fork this repository and automatically tailor the package to your needs.


Stars: 2
Last commit: 4 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics