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

        case .code:
            return [NSFontAttributeName: fonts.code!,
                    NSForegroundColorAttributeName: OSColor.codeForeground]
        default:
            return [NSFontAttributeName: fonts.regular]
        }

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