         return NSMutableAttributedString(attributedString: res)
     }
     
-    private func attributesFor(_ style: MarkStyles) -> [String: AnyObject] {
+    private func attributesFor(_ style: MarkStyles) -> [String: Any] {
         switch style {
         case .bold:
             return [NSFontAttributeName: fonts.bold]

        
        switch style {
        case .strikeThrough:
            attrText.addAttribute(NSStrikethroughStyleAttributeName, value: 1, range: range)
        case .code:
            attrText.setAttributes(attributesFor(.code), range: range)
        case .none:

        case .code:
            return [NSFontAttributeName: fonts.code!,
                    NSForegroundColorAttributeName: OSColor.codeForeground]
        case .strikeThrough:
            return [NSStrikethroughStyleAttributeName: 1,
                    NSStrikethroughColorAttributeName: OSColor.black]
        default:
            return [NSFontAttributeName: fonts.regular]
        }
