Swiftpack.co - Package - loopwerk/SagaPythonMarkdownReader

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

loopwerk/SagaPythonMarkdownReader

A Markdown reader for Saga, which uses Python-Markdown

SagaPythonMarkdownReader

A Markdown reader for Saga, which uses Python-Markdown. Code syntax highlighting is done via Pygments, if installed.

Usage

Include SagaPythonMarkdownReader in your Package.swift as usual:

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

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

Github

link
Stars: 1
Last commit: 1 week ago

Dependencies