Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Commit 8f72816

Browse files
committed
entityType README
1 parent 7fa032c commit 8f72816

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ features = {
7979
}
8080
```
8181

82-
#### Example
82+
#### Example:
8383

8484
```
8585
// this will only enable BOLD for inline and CODE
@@ -125,6 +125,19 @@ import { CHECKABLE_LIST_ITEM } from "draft-js-checkable-list-item"
125125
]
126126
```
127127

128+
### `entityType`
129+
Dictionary for `IMAGE` and `LINK` entity.
130+
131+
#### Example:
132+
133+
```js
134+
const entityType = {
135+
IMAGE: "IMAGE",
136+
LINK: "LINK",
137+
}
138+
139+
const markdownPlugin = createMarkdownPlugin({ entityType })
140+
```
128141

129142
## Usage
130143

0 commit comments

Comments
 (0)