To make Xcode 9 render markdown file eg. README.md, drop .xcodesamplecode.plist
in your .xcodeproj/
folder.
.xcodesamplecode.plist
is like this:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <array/> </plist>
For convenience, There is this tool, which is derived from a tutorial.
brew install corekit/brew/renderer
cd /your/xcode/project/path
renderer
Note that while xcode 9 render option is on, you can`t edit the markdown file in Xcode 9.
The easiest way to render markdown in Xcode is by using QuickLook.
Install qlmarkdown plugin https://github.com/toland/qlmarkdown
README.md > Open as > Quick look