markdownSourcePosition
The position in a Markdown source string corresponding to some attributed text.
Declaration
static let markdownSourcePosition: NSAttributedString.KeyDiscussion
This attribute indicates the position in the Markdown source where a run of attributed text begins and ends, omitting markup characters in the source. For example, after parsing the source string “This is *emphasized*.”, the text emphasized has a Markdown source position that starts at column 10. This index is the “e” character, not the “*” formatting character.
An attributed string parsed from Markdown text includes this attribute only if the appliesSourcePositionAttributes value in the directory of NSAttributedString.DocumentReadingOptionKey options provided to the NSAttributedString initializer is YES.