I might have found something. Just went through some markdown parsing frameworks on GitHub and there are some written in Swift. But I'll need another look to find one really useful.