A work in progress implemntation of a pygments plugin for use with Publish.
Install pygments on your machine.
pip3 install pygments
In your Package.swift add:
.package(url: "https://github.com/tgymnich/PygmentsPublishPlugin.git", from: "0.0.4")
To load the plugin simply add these lines:
import PygmentsPublishPlugin
...
try MyWebsite().publish(
...
plugins: [.pygmentize(withClassPrefix: "")]
])
You'll also need to add some CSS. Check out these examples
link |
Stars: 0 |
Last commit: 10 weeks ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics