---
title: "init(allowsExtendedAttributes:interpretedSyntax:failurePolicy:languageCode:appliesSourcePositionAttributes:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/attributedstring/markdownparsingoptions/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.

## Declaration

```swift
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 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 doc://com.apple.foundation/documentation/Foundation/AttributeScopes/FoundationAttributes/MarkdownSourcePositionAttribute.

## See Also

### Creating Markdown Parsing Options

- [init(allowsExtendedAttributes:interpretedSyntax:failurePolicy:languageCode:)](foundation/attributedstring/markdownparsingoptions/init(allowsextendedattributes:interpretedsyntax:failurepolicy:languagecode:).md)
