             else {
                 return
             }
-
+            let attributes = textStorage.attributes(at: enclosingRange.location, effectiveRange: nil)
             let glyphRange = self.glyphRange(forCharacterRange: enclosingRange, actualCharacterRange: nil)
             let markerRect = rectForItem(range: glyphRange, origin: origin, paragraphStyle: paragraphStyle)
             var markerNumber = textStorage.itemNumber(in: list, at: enclosingRange.location)

    /// Draws the specified List Item Number, at a given location.
    ///
    /// - Parameters:
    ///     - number: Marker Number of the item to be drawn
    ///     - rect: Visible Rect in which the Marker should be rendered
    ///     - list: Associated TextList
    ///     - style: ParagraphStyle associated to the list
    ///     - location: Text Location that should get the marker rendered.
    ///
    private func drawItem(number: Int, in rect: CGRect, from list: TextList, using style: ParagraphStyle, at location: Int) {
        guard let textStorage = textStorage else {
            return
        }

        let paragraphAttributes = textStorage.attributes(at: location, effectiveRange: nil)
        let markerAttributes = markerAttributesBasedOnParagraph(attributes: paragraphAttributes)

        let markerPlain = list.style.markerText(forItemNumber: number)
        let markerText = NSAttributedString(string: markerPlain, attributes: markerAttributes)

        var yOffset = CGFloat(0)

        if location > 0 {
            yOffset += style.paragraphSpacingBefore
        }

        let markerRect = rect.offsetBy(dx: 0, dy: yOffset)
        markerText.draw(in: markerRect)
    }



    }


    /// Returns the Marker Paragraph Attributes
    ///
    private func markerParagraphStyle(indent: CGFloat) -> NSParagraphStyle {
        let tabStop = NSTextTab(textAlignment: .right, location: indent, options: [:])
