Contents

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

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 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 Markdownsourcepositionattribute.

See Also

Creating Markdown Parsing Options