<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/AttributedString/MarkdownSourcePosition",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation16AttributedStringV22MarkdownSourcePositionV"
  },
  "title" : "AttributedString.MarkdownSourcePosition"
}
-->

# AttributedString.MarkdownSourcePosition

The position of attributed string text in its original Markdown source string.

```
struct MarkdownSourcePosition
```

## Topics

### Creating a Markdown Source Position

[`init(startLine: Int, startColumn: Int, endLine: Int, endColumn: Int)`](/documentation/Foundation/AttributedString/MarkdownSourcePosition/init(startLine:startColumn:endLine:endColumn:))

Creates a Markdown source position instance from its start and end line and column.

### Inspecting Markdown Source Position Properties

[`let startLine: Int`](/documentation/Foundation/AttributedString/MarkdownSourcePosition/startLine)

The line where the text begins in the Markdown source.

[`let startColumn: Int`](/documentation/Foundation/AttributedString/MarkdownSourcePosition/startColumn)

The column where the text begins in the Markdown source.

[`let endLine: Int`](/documentation/Foundation/AttributedString/MarkdownSourcePosition/endLine)

The line where the text ends in the Markdown source.

[`let endColumn: Int`](/documentation/Foundation/AttributedString/MarkdownSourcePosition/endColumn)

The column where the text ends in the Markdown source.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

[`Encodable`](/documentation/Swift/Encodable)

[`Decodable`](/documentation/Swift/Decodable)

[`Hashable`](/documentation/Swift/Hashable)

[`Copyable`](/documentation/Swift/Copyable)

[`Escapable`](/documentation/Swift/Escapable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)