languageCode
TypeScriptget languageCode(): (string) | nullSwift declarationvar languageCode: String?The BCP-47 language code for this document. Use this code to inform the Markdown parser of the human language of this document.
struct · iOS 15.0+ · SDK 27.1
struct MarkdownParsingOptionsOptions for parsing a Markdown string into an attributed string.
get languageCode(): (string) | nullSwift declarationvar languageCode: String?The BCP-47 language code for this document. Use this code to inform the Markdown parser of the human language of this document.
set languageCode(value: (string) | null)Swift declarationvar languageCode: String?The BCP-47 language code for this document. Use this code to inform the Markdown parser of the human language of this document.
get failurePolicy(): AttributedString_MarkdownParsingOptions_FailurePolicySwift declarationvar failurePolicy: AttributedString.MarkdownParsingOptions.FailurePolicyA policy that an attributed string follows when it encounters a parsing error.
set failurePolicy(value: AttributedString_MarkdownParsingOptions_FailurePolicy)Swift declarationvar failurePolicy: AttributedString.MarkdownParsingOptions.FailurePolicyA policy that an attributed string follows when it encounters a parsing error.
get interpretedSyntax(): AttributedString_MarkdownParsingOptions_InterpretedSyntaxSwift declarationvar interpretedSyntax: AttributedString.MarkdownParsingOptions.InterpretedSyntaxThe syntax for interpreting a Markdown string. The default is ``InterpretedSyntax/full``.
set interpretedSyntax(value: AttributedString_MarkdownParsingOptions_InterpretedSyntax)Swift declarationvar interpretedSyntax: AttributedString.MarkdownParsingOptions.InterpretedSyntaxThe syntax for interpreting a Markdown string. The default is ``InterpretedSyntax/full``.
static initAllowsExtendedAttributesInterpretedSyntaxFailurePolicyLanguageCodeAppliesSourcePositionAttributes(allowsExtendedAttributes?: boolean, interpretedSyntax?: AttributedString_MarkdownParsingOptions_InterpretedSyntax, failurePolicy?: AttributedString_MarkdownParsingOptions_FailurePolicy, languageCode?: (string) | null, appliesSourcePositionAttributes?: boolean): AttributedString_MarkdownParsingOptionsSwift declarationinit(allowsExtendedAttributes: Bool = false, interpretedSyntax: AttributedString.MarkdownParsingOptions.InterpretedSyntax = .full, failurePolicy: AttributedString.MarkdownParsingOptions.FailurePolicy = .throwError, languageCode: String? = nil, appliesSourcePositionAttributes: Bool = false)Creates options for parsing a Markdown string into an attributed string. - Parameters: - allowsExtendedAttributes: A Boolean value that indicates whether parsing an extended attribute syntax is allowed. - interpretedSyntax: The syntax for interpreting a Markdown string. - failurePolicy: A policy that an attributed string follows when it encounters a parsing error. - languageCode: The BCP-47 language code for this document. - appliesSourcePositionAttributes: A Boolean value that indicates whether the parser applies source position attributes.
static initAllowsExtendedAttributesInterpretedSyntaxFailurePolicyLanguageCode(allowsExtendedAttributes?: boolean, interpretedSyntax?: AttributedString_MarkdownParsingOptions_InterpretedSyntax, failurePolicy?: AttributedString_MarkdownParsingOptions_FailurePolicy, languageCode?: (string) | null): AttributedString_MarkdownParsingOptionsSwift declarationinit(allowsExtendedAttributes: Bool = false, interpretedSyntax: AttributedString.MarkdownParsingOptions.InterpretedSyntax = .full, failurePolicy: AttributedString.MarkdownParsingOptions.FailurePolicy = .throwError, languageCode: String? = nil)Creates options for parsing a Markdown string into an attributed string. - Parameters: - allowsExtendedAttributes: A Boolean value that indicates whether parsing an extended attribute syntax is allowed. - interpretedSyntax: The syntax for interpreting a Markdown string. - failurePolicy: A policy that an attributed string follows when it encounters a parsing error. - languageCode: The BCP-47 language code for this document.
get allowsExtendedAttributes(): booleanSwift declarationvar allowsExtendedAttributes: BoolA Boolean value that indicates whether parsing an extended attribute syntax is allowed. When this property is `true`, the parser recognizes extended attribute syntax like `^[text](key: value, otherKey: otherValue)`.
set allowsExtendedAttributes(value: boolean)Swift declarationvar allowsExtendedAttributes: BoolA Boolean value that indicates whether parsing an extended attribute syntax is allowed. When this property is `true`, the parser recognizes extended attribute syntax like `^[text](key: value, otherKey: otherValue)`.
get appliesSourcePositionAttributes(): booleanSwift declarationvar appliesSourcePositionAttributes: BoolA Boolean value that indicates whether parsing applies attributes that indicate the position of attributed text in the original Markdown string.
set appliesSourcePositionAttributes(value: boolean)Swift declarationvar appliesSourcePositionAttributes: BoolA Boolean value that indicates whether parsing applies attributes that indicate the position of attributed text in the original Markdown string.
No declarations were skipped in this snapshot.