         class var codeForeground: UIColor {
             return UIColor(red: 206 / 255.0 , green: 26 / 255.0 , blue: 83 / 255.0 , alpha: 1)
         }
-        
+    }
+    
+    extension MarkDown {
+        func charFontAttributeAt(_ index: Int) -> UIFont? {
+            
+            let charAttributes = attrText.attributes(at: index, effectiveRange: nil)
+            return charAttributes[NSFontAttributeName] as? UIFont
+        }
     }
     
 #elseif os(macOS)

        return String(text[index - 1]) != mark && text[index - 1] != " "
    }
    
    private func charFontAttributeAt(_ index: Int) -> UIFont? {
        
        let charAttributes = attrText.attributes(at: index, effectiveRange: nil)
        return charAttributes[NSFontAttributeName] as? UIFont
    }
}



        }
    }
    
    extension MarkDown {
        func charFontAttributeAt(_ index: Int) -> NSFont? {
            
            let charAttributes = attrText.attributes(at: index, effectiveRange: nil)
            return charAttributes[NSFontAttributeName] as? NSFont
        }
    }
    
#endif


class MarkDown {
    
    private var text: String!
    var attrText: NSMutableAttributedString!
    
    // MARK: - Mark Styles
    
