<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSAttributedStringMarkdownParsingOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSAttributedStringMarkdownParsingOptions"
  },
  "title" : "NSAttributedStringMarkdownParsingOptions"
}
-->

# NSAttributedStringMarkdownParsingOptions

Options that affect the parsing of Markdown content into an attributed string.

```
@interface NSAttributedStringMarkdownParsingOptions : NSObject
```

## Topics

### Creating a Markdown Parsing Options Instance

[`-  init`](/documentation/Foundation/NSAttributedStringMarkdownParsingOptions/init)

Creates a Markdown parsing options instance with the specified values.

### Determining Markdown Parsing Options

[`allowsExtendedAttributes`](/documentation/Foundation/NSAttributedStringMarkdownParsingOptions/allowsExtendedAttributes)

A Boolean value that indicates whether parsing allows extensions to Markdown that specify extended attributes.

[`appliesSourcePositionAttributes`](/documentation/Foundation/NSAttributedStringMarkdownParsingOptions/appliesSourcePositionAttributes)

A Boolean value that indicates whether parsing applies attributes that indicate the position of attributed text in the original Markdown string.

[`failurePolicy`](/documentation/Foundation/NSAttributedStringMarkdownParsingOptions/failurePolicy)

The policy for handling a parsing failure.

[`NSAttributedStringMarkdownParsingFailurePolicy`](/documentation/Foundation/NSAttributedStringMarkdownParsingFailurePolicy)

A type that represents policies for handling parsing failures.

[`interpretedSyntax`](/documentation/Foundation/NSAttributedStringMarkdownParsingOptions/interpretedSyntax)

The syntax for intepreting a Markdown string.

[`NSAttributedStringMarkdownInterpretedSyntax`](/documentation/Foundation/NSAttributedStringMarkdownInterpretedSyntax)

A type that represents the syntax for intepreting a Markdown string.

[`languageCode`](/documentation/Foundation/NSAttributedStringMarkdownParsingOptions/languageCode)

The BCP-47 language code for this document.

## Relationships

### Conforms To

[`NSCopying`](/documentation/Foundation/NSCopying)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)