---
title: NSPresentationIntent
framework: foundation
role: symbol
role_heading: Class
path: foundation/nspresentationintent
---

# NSPresentationIntent

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

## Declaration

```occ
@interface NSPresentationIntent : NSObject
```

## Overview

Overview An 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 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:](foundation/nspresentationintent/paragraphintentwithidentity:nestedinsideintent:.md)
- [headerIntentWithIdentity:level:nestedInsideIntent:](foundation/nspresentationintent/headerintentwithidentity:level:nestedinsideintent:.md)
- [orderedListIntentWithIdentity:nestedInsideIntent:](foundation/nspresentationintent/orderedlistintentwithidentity:nestedinsideintent:.md)
- [unorderedListIntentWithIdentity:nestedInsideIntent:](foundation/nspresentationintent/unorderedlistintentwithidentity:nestedinsideintent:.md)
- [listItemIntentWithIdentity:ordinal:nestedInsideIntent:](foundation/nspresentationintent/listitemintentwithidentity:ordinal:nestedinsideintent:.md)
- [codeBlockIntentWithIdentity:languageHint:nestedInsideIntent:](foundation/nspresentationintent/codeblockintentwithidentity:languagehint:nestedinsideintent:.md)
- [blockQuoteIntentWithIdentity:nestedInsideIntent:](foundation/nspresentationintent/blockquoteintentwithidentity:nestedinsideintent:.md)
- [thematicBreakIntentWithIdentity:nestedInsideIntent:](foundation/nspresentationintent/thematicbreakintentwithidentity:nestedinsideintent:.md)
- [tableIntentWithIdentity:columnCount:alignments:nestedInsideIntent:](foundation/nspresentationintent/tableintentwithidentity:columncount:alignments:nestedinsideintent:.md)
- [tableHeaderRowIntentWithIdentity:nestedInsideIntent:](foundation/nspresentationintent/tableheaderrowintentwithidentity:nestedinsideintent:.md)
- [tableRowIntentWithIdentity:row:nestedInsideIntent:](foundation/nspresentationintent/tablerowintentwithidentity:row:nestedinsideintent:.md)
- [tableCellIntentWithIdentity:column:nestedInsideIntent:](foundation/nspresentationintent/tablecellintentwithidentity:column:nestedinsideintent:.md)

### Getting the intent identity

- [identity](foundation/nspresentationintent/identity.md)
- [intentKind](foundation/nspresentationintent/intentkind.md)
- [parentIntent](foundation/nspresentationintent/parentintent.md)
- [isEquivalentToPresentationIntent:](foundation/nspresentationintent/isequivalenttopresentationintent:.md)

### Getting header information

- [headerLevel](foundation/nspresentationintent/headerlevel.md)

### Getting list information

- [ordinal](foundation/nspresentationintent/ordinal.md)
- [indentationLevel](foundation/nspresentationintent/indentationlevel.md)

### Getting table information

- [row](foundation/nspresentationintent/row.md)
- [column](foundation/nspresentationintent/column.md)
- [columnCount](foundation/nspresentationintent/columncount.md)
- [columnAlignments](foundation/nspresentationintent/columnalignments.md)

### Getting code information

- [languageHint](foundation/nspresentationintent/languagehint.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [NSCopying](foundation/nscopying.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Representing markdown attributes

- [InlinePresentationIntent](foundation/inlinepresentationintent.md)
- [NSAttributedStringMarkdownSourcePosition](foundation/nsattributedstringmarkdownsourceposition.md)
- [NSPresentationIntentKind](foundation/nspresentationintentkind.md)
- [NSPresentationIntentTableColumnAlignment](foundation/nspresentationintenttablecolumnalignment.md)
