<!--
{
  "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/MarkdownParsingOptions/init(allowsExtendedAttributes:interpretedSyntax:failurePolicy:languageCode:appliesSourcePositionAttributes:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation16AttributedStringV22MarkdownParsingOptionsV24allowsExtendedAttributes17interpretedSyntax13failurePolicy12languageCode021appliesSourcePositionI0AESb_AE011InterpretedK0OAE07FailureM0OSSSgSbtcfc"
  },
  "title" : "init(allowsExtendedAttributes:interpretedSyntax:failurePolicy:languageCode:appliesSourcePositionAttributes:)"
}
-->

# init(allowsExtendedAttributes:interpretedSyntax:failurePolicy:languageCode:appliesSourcePositionAttributes:)

Creates a Markdown parsing options instance with the specified values, optionally marking the source position of attributed text.

```
init(allowsExtendedAttributes: Bool = false, interpretedSyntax: AttributedString.MarkdownParsingOptions.InterpretedSyntax = .full, failurePolicy: AttributedString.MarkdownParsingOptions.FailurePolicy = .throwError, languageCode: String? = nil, appliesSourcePositionAttributes: Bool = false)
```

## Parameters

`allowsExtendedAttributes`

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

`interpretedSyntax`

The syntax for intepreting a Markdown string.

`failurePolicy`

The policy for handling a parsing failure.

`languageCode`

The [BCP-47](https://tools.ietf.org/search/bcp47) language code for this document.

`appliesSourcePositionAttributes`

A Boolean value that indicates whether parsing applies attributes that indicate the position of attribute text in the original Markdown string. If this value is `true`, the resulting string may contain attributes of type [`AttributeScopes.FoundationAttributes.MarkdownSourcePositionAttribute`](/documentation/Foundation/AttributeScopes/FoundationAttributes/MarkdownSourcePositionAttribute).

---

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)