Imagine... You're working in swift code and you need to explain something to a co-worker. Easiest would be to just explain it and show the code right. So you grab your trusty editor and type some markdown.
let it = "be awesome" Great!
So now you have a file filled with content:
But it would be better if it looked like:
Well you can and it's super simple, all you need is some Markdown and:
npm install -g swift-playground-builder After that it's a matter of running:
playground my-super-nice-markdown-with-swift-code.md Enjoy!
More info: https://github.com/jas/swift-playground-builder