<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSPresentationIntent",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSPresentationIntent"
  },
  "title" : "NSPresentationIntent"
}
-->

# NSPresentationIntent

A type that contains the Markdown formatting for blocks of text, like paragraphs, lists, code blocks, and parts of tables.

```
@interface NSPresentationIntent : NSObject
```

## Overview

An [`NSPresentationIntent`](/documentation/Foundation/NSPresentationIntent) object stores the Markdown semantics for a range of characters in an attributed string. When parsing Markdown into an attributed string, the system sets the value of the [`presentationIntentAttributeName`](/documentation/Foundation/NSAttributedString/Key/presentationIntentAttributeName) attribute to an instance of this class. When displaying your string in system views, the system applies a default visual style to match the corresponding information in this type. To replace the system’s default formatting, remove these attributes from your attributed string and apply the formatting you want.

## Topics

### Creating a presentation intent

[`+  paragraphIntentWithIdentity:nestedInsideIntent:`](/documentation/Foundation/NSPresentationIntent/paragraphIntentWithIdentity:nestedInsideIntent:)

Creates a  paragraph intent with the provided information.

[`+  headerIntentWithIdentity:level:nestedInsideIntent:`](/documentation/Foundation/NSPresentationIntent/headerIntentWithIdentity:level:nestedInsideIntent:)

Creates a header intent with the provided information.

[`+  orderedListIntentWithIdentity:nestedInsideIntent:`](/documentation/Foundation/NSPresentationIntent/orderedListIntentWithIdentity:nestedInsideIntent:)

Creates an ordered-list intent with the provided information.

[`+  unorderedListIntentWithIdentity:nestedInsideIntent:`](/documentation/Foundation/NSPresentationIntent/unorderedListIntentWithIdentity:nestedInsideIntent:)

Creates an unordered-list intent with the provided information.

[`+  listItemIntentWithIdentity:ordinal:nestedInsideIntent:`](/documentation/Foundation/NSPresentationIntent/listItemIntentWithIdentity:ordinal:nestedInsideIntent:)

Creates an item for an ordered list with the provided information.

[`+  codeBlockIntentWithIdentity:languageHint:nestedInsideIntent:`](/documentation/Foundation/NSPresentationIntent/codeBlockIntentWithIdentity:languageHint:nestedInsideIntent:)

Creates an code-block intent with the provided information.

[`+  blockQuoteIntentWithIdentity:nestedInsideIntent:`](/documentation/Foundation/NSPresentationIntent/blockQuoteIntentWithIdentity:nestedInsideIntent:)

Creates a block-quote intent with the provided information.

[`+  thematicBreakIntentWithIdentity:nestedInsideIntent:`](/documentation/Foundation/NSPresentationIntent/thematicBreakIntentWithIdentity:nestedInsideIntent:)

Creates a thematic break intent with the provided information.

[`+  tableIntentWithIdentity:columnCount:alignments:nestedInsideIntent:`](/documentation/Foundation/NSPresentationIntent/tableIntentWithIdentity:columnCount:alignments:nestedInsideIntent:)

Creates a table intent with the provided information.

[`+  tableHeaderRowIntentWithIdentity:nestedInsideIntent:`](/documentation/Foundation/NSPresentationIntent/tableHeaderRowIntentWithIdentity:nestedInsideIntent:)

Creates a table header intent with the provided information.

[`+  tableRowIntentWithIdentity:row:nestedInsideIntent:`](/documentation/Foundation/NSPresentationIntent/tableRowIntentWithIdentity:row:nestedInsideIntent:)

Creates a table row intent with the provided information.

[`+  tableCellIntentWithIdentity:column:nestedInsideIntent:`](/documentation/Foundation/NSPresentationIntent/tableCellIntentWithIdentity:column:nestedInsideIntent:)

Creates a table cell intent with the provided information.

### Getting the intent identity

[`identity`](/documentation/Foundation/NSPresentationIntent/identity)

A unique identifier for the intent in the document.

[`intentKind`](/documentation/Foundation/NSPresentationIntent/intentKind)

The type of the intent.

[`parentIntent`](/documentation/Foundation/NSPresentationIntent/parentIntent)

The parent of the current intent.

[`-  isEquivalentToPresentationIntent:`](/documentation/Foundation/NSPresentationIntent/isEquivalentToPresentationIntent:)

Returns a Boolean value that indicates whether the current intent is equivalent to the specified intent.

### Getting header information

[`headerLevel`](/documentation/Foundation/NSPresentationIntent/headerLevel)

The level of a header section.

### Getting list information

[`ordinal`](/documentation/Foundation/NSPresentationIntent/ordinal)

The number for an item in an ordered list.

[`indentationLevel`](/documentation/Foundation/NSPresentationIntent/indentationLevel)

The indentation level of the intent.

### Getting table information

[`row`](/documentation/Foundation/NSPresentationIntent/row)

The row number to which this cell belongs.

[`column`](/documentation/Foundation/NSPresentationIntent/column)

The column number to which the cell belongs.

[`columnCount`](/documentation/Foundation/NSPresentationIntent/columnCount)

The number of columns in a table.

[`columnAlignments`](/documentation/Foundation/NSPresentationIntent/columnAlignments)

The alignments for the columns in a table.

### Getting code information

[`languageHint`](/documentation/Foundation/NSPresentationIntent/languageHint)

The language associated with the code listing.

## Relationships

### Conforms To

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`NSCopying`](/documentation/Foundation/NSCopying)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)