init(markdown:options:baseURL:)
Creates an attributed string from a Markdown-formatted string using the provided options.
Declaration
convenience init(markdown: String, options: AttributedString.MarkdownParsingOptions = .init(), baseURL: URL? = nil) throwsParameters
- markdown:
The string that contains the Markdown formatting.
- options:
Options that affect how the initializer interprets formatting in the Markdown string. This parameter defaults to no options.
- baseURL:
The base URL to use when resolving Markdown URLs. The initializer treats URLs as being relative to this URL. If this value is
nil, the initializer doesn’t resolve URLs. The default isnil.