Merge pull request #593 from bluesky-social/ollie/fix-hardbreak

Fix hardbreak formatting
zio/stable
Ollie H 2023-05-05 16:53:12 -07:00 committed by GitHub
commit 0c604ff1c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -140,6 +140,8 @@ function editorJsonToText(json: JSONContent): string {
}
}
text += '\n'
} else if (json.type === 'hardBreak') {
text += '\n'
} else if (json.type === 'text') {
text += json.text || ''
} else if (json.type === 'mention') {