         selectedRange = NSRange(location: selectedRange.location + string.length, length: 0)
         return true
     }
-    
+
+    /// Tries to paste HTML from the clipboard as source, replacing the selected range.
+    ///
+    /// - Returns: True if this method succeeds.
+    ///
     func tryPastingHTML() -> Bool {
         guard let html = UIPasteboard.general.html() else {
             return false

        replace(selectedRange, withHTML: html)
        return true
    }
    
    private func tryPastingString() -> Bool {
        guard let string = UIPasteboard.general.string else {
            return false

        return true
    }

    /// Tries to paste a URL from the clipboard as a link applied to the selected range.
    ///
    /// - Returns: True if this method succeeds.
    ///
    private func tryPastingURL() -> Bool {
        guard selectedRange.length > 0,
