Swiftpack.co - Package - loopwerk/SagaInkMarkdownReader

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.

loopwerk/SagaInkMarkdownReader

A Markdown reader for Saga, which uses Ink and Splash.

SagaInkMarkdownReader

A Markdown reader for Saga, which uses Ink and Splash.

Usage

Include SagaInkMarkdownReader in your Package.swift as usual:

let package = Package(
  name: "MyWebsite",
  dependencies: [
    .package(name: "Saga", url: "https://github.com/loopwerk/Saga.git", from: "0.11.0"),
    .package(name: "SagaInkMarkdownReader", url: "https://github.com/loopwerk/SagaInkMarkdownReader", from: "0.3.0"),
  ],
  targets: [
    .target(
      name: "MyWebsite",
      dependencies: ["Saga", "SagaInkMarkdownReader"]),
  ]
)

And then in your website you can import SagaInkMarkdownReader and use inkMarkdownReader as you would do the default markdownReader.

Github

link
Stars: 1
Last commit: 2 weeks ago