Tiny markdown parser, makes tutorial screens editing much simpler

This commit is contained in:
relikd
2020-08-31 17:10:11 +02:00
parent ff4218981f
commit 8bb77ef741
13 changed files with 182 additions and 94 deletions

View File

@@ -47,3 +47,9 @@ private var listOfSLDs: [String : [String : Bool]] = {
}
return res
}()
extension NSString {
func substring(from: Int, to: Int) -> String {
substring(with: NSRange(location: from, length: to - from))
}
}