---
title: "decodeMarkdown(from:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/markdowndecodableattributedstringkey/decodemarkdown(from:)"
---

# decodeMarkdown(from:)

Decodes a value from the provided decoder.

## Declaration

```swift
static func decodeMarkdown(from decoder: any Decoder) throws -> Self.Value
```

## Parameters

- `decoder`: The decoder to read data from.

## Return Value

Return Value The decoded value.

## Discussion

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