     }
 #endif
 
-/// Regular expression to preprocess before NSAttributedString class parses html.
-//private let regrexPreprocessBeforeNSAttributedStringParsing = try! NSRegularExpression(pattern: "(<del>)|(</del>)", options: NSRegularExpressionOptions.CaseInsensitive)
-
 extension String {
     public func preprocessedHTMLStringBeforeNSAttributedStringParsing() -> String {
         var temp = self.stringByReplacingOccurrencesOfString("<del>", withString: "<font size=\"5\">")
         temp = temp.stringByReplacingOccurrencesOfString("<blockquote>", withString: "<cite>")
         temp = temp.stringByReplacingOccurrencesOfString("</blockquote>", withString: "</cite>")
         return temp.stringByReplacingOccurrencesOfString("</del>", withString: "</font>")
-        
-//        let str:NSMutableString = NSMutableString(string: self)
-//        let matches = regrexPreprocessBeforeNSAttributedStringParsing.matchesInString(self, options: NSMatchingOptions(), range: NSMakeRange(0, self.utf16.count))
-//        matches.reverse().forEach { (result:NSTextCheckingResult) -> () in
-//            if result.rangeAtIndex(1).length > 0 {
-//                (str as NSMutableString).replaceCharactersInRange(result.rangeAtIndex(1), withString: "<font size=\"5\">")
-//            }
-//            else if result.rangeAtIndex(2).length > 0 {
-//                (str as NSMutableString).replaceCharactersInRange(result.rangeAtIndex(2), withString: "</font>")
-//            }
-//        }
-//        return str as String
-    }
-}
-
-/// Regular expression to parse markdown
-private let regexToParseRedditMarkdown = try! NSRegularExpression(pattern: "((\\n|^)\\*\\s)|(~~([^\\s]+?)~~)|(\\*\\*([^\\s^\\*]+?)\\*\\*)|(\\*([^\\s^\\*]+?)\\*)|(\\[(.+?)\\]\\(([%!$&'*+,-./0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~]+)\\))|(\\^([^\\s\\^]+))|(https{0,1}://[%!$&'()*+,-./0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~]+)|(/(r|u)/[0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_]+)", options: NSRegularExpressionOptions.CaseInsensitive)
-
-/// Index of parentheses in above regular expression to parse markdown
-private let headStarPos     = 1
-private let strikePos       = 3
-private let boldPos         = 5
-private let italicPos       = 7
-private let mdLinkPos       = 9
-private let superscriptPos  = 12
-private let httpLinkPos     = 14
-private let redditLinkPos   = 15
+    }
+}
 
 /// Enum, attributes for NSAttributedString
 private enum Attribute {
-    case Link(String, Int, Int)
-    case LinkURL(NSURL, Int, Int)
+    case Link(NSURL, Int, Int)
     case Bold(Int, Int)
     case Italic(Int, Int)
     case Superscript(Int, Int)


extension NSURLComponents {
    /// Returns true when URL's filename has image's file extension(like gif, jpg, png).
var hasImageFileExtension : Bool {
        if let path = self.path {
            if let r = regexForHasImageFileExtension.firstMatchInString(path, options: NSMatchingOptions(), range: NSMakeRange(0, path.characters.count)) {
                return r.rangeAtIndex(1).length > 0

                output.addAttribute(NSStrikethroughStyleAttributeName, value:NSNumber(int:1), range: NSMakeRange(loc, len))
            case .Code(let loc, let len):
                output.addAttribute(NSFontAttributeName, value:codeFont!, range: NSMakeRange(loc, len))
            }
        }
        
