     ///
     private func markerAttributesBasedOnParagraph(attributes: [String: Any]) -> [String: Any] {
         var resultAttributes = attributes
-        resultAttributes[NSParagraphStyleAttributeName] = ParagraphStyle.default
+        resultAttributes[NSParagraphStyleAttributeName] = markerParagraphStyle()
         resultAttributes.removeValue(forKey: NSUnderlineStyleAttributeName)
         resultAttributes.removeValue(forKey: NSStrikethroughStyleAttributeName)
         resultAttributes.removeValue(forKey: NSLinkAttributeName)

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

        let markerRect = rect.offsetBy(dx: style.headIndent - Metrics.defaultIndentation, dy: style.paragraphSpacingBefore)
        let markerPlain = list.style.markerText(forItemNumber: number)
        let markerText = NSAttributedString(string: markerPlain, attributes: markerAttributes)

        markerText.draw(in: markerRect)
    }

        }
        return resultAttributes
    }


    /// Returns the Marker Paratraph Attributes
    ///
    private func markerParagraphStyle() -> NSParagraphStyle {
        let tabStop = NSTextTab(textAlignment: .right, location: Metrics.listBulletIndentation, options: [:])
        let paragraphStyle = NSMutableParagraphStyle()
        paragraphStyle.tabStops = [tabStop]

        return paragraphStyle
    }
}
