I’ve just posted a tool on github for turning marked up text files into Swift playgrounds. The screenshot below shows a playground produced from the file basic.ad by running the command ./ad2play. See the README on the github repository for more details and installation notes. We use asciidoc markup in its asciidoctor incarnation.
The main point of doing this is to have a way of integrating explanatory text into playgrounds in a visually appealing way (of course, we could just use comments:-). Playgrounds constructed with ad2play can use LaTex for mathematical notation and can also contain images. Clone the github repository and double-click on the .playground files for examples with mathematics and images.
To get an html file instead of a playground, run the command asciidoctor basic.ad.
- Playgrounds in Xcode still display flaky behavior.
- I will eventually get rid of the unwanted yellowish space you see in the above screenshot
of a playground.