Skip to content

Commit 55b7cbc

Browse files
Merge pull request #620 from marius-refinq/fix/suggested-edits-markup-appears-in-rendered-text
Fix/suggested edits markup appears in rendered text
2 parents 88d93bf + 832f4da commit 55b7cbc

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

packages/notion-types/src/core.ts

+2
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ export type DiscussionFormat = ['m', string]
120120
export type ExternalLinkFormat = ['‣', [string, string]]
121121
export type DateFormat = ['d', FormattedDate]
122122
export type LinkMentionFormat = ['lm', string]
123+
export type SuggestionEditFormat = ['si', string]
123124

124125
export interface FormattedDate {
125126
type: 'date' | 'daterange' | 'datetime' | 'datetimerange'
@@ -147,6 +148,7 @@ export type SubDecoration =
147148
| DiscussionFormat
148149
| ExternalObjectInstanceFormat
149150
| LinkMentionFormat
151+
| SuggestionEditFormat
150152

151153
export type BaseDecoration = [string]
152154
export type AdditionalDecoration = [string, SubDecoration[]]

packages/react-notion-x/src/components/text.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,9 @@ export function Text({
259259
return <EOI block={externalObjectInstance} inline={true} />
260260
}
261261

262+
case 'si':
263+
return null
264+
262265
default:
263266
if (process.env.NODE_ENV !== 'production') {
264267
console.log('unsupported text format', decorator)

0 commit comments

Comments
 (0)