Type Method 型メソッド

decodeMarkdown(from:)

Decodes a value from the provided decoder, using a default implementation.

Declaration 宣言

static func decodeMarkdown(from decoder: Decoder) throws -> Self.Value
Available when Self conforms to DecodableAttributedStringKey. SelfDecodableAttributedStringKeyに準拠する時に利用可能。

Parameters パラメータ

decoder

The decoder to read data from. このデコーダからデータを読み出すことになります。

Return Value 戻り値

The decoded value.

Discussion 議論

The default implementation calls decode(from:), inherited from DecodableAttributedStringKey, meaning it uses the same decoding as non-Markdown encoding.

This method throws an error if reading from the decoder fails, or if the data read is corrupted or otherwise invalid.