-
Notifications
You must be signed in to change notification settings - Fork 24
feat: added support for an empty string #505
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
1c12e20
added support for an empty string
PMAWorks 5a6b8e7
fix
PMAWorks 2d2a6ad
fix PR
PMAWorks 296e132
fix
PMAWorks 11dd96d
Merge branch 'main' into add-empty-row
PMAWorks 63bad68
fix emptyRow shortcut
PMAWorks 4ef6f8d
fix PR
PMAWorks 533d944
fix PR
PMAWorks b8cf4ba
fix PR
PMAWorks c36b8b5
Merge branch 'main' into add-empty-row
PMAWorks 0fa5029
feat(bundle): added empty row placeholder (#506)
PMAWorks b6c3987
fix(Checkbox): added parse dom rules and fixed pasting of checkboxes …
d3m1d0v 5427ef7
chore(main): release 14.7.0 (#525)
gravity-ui-bot cef8738
feat(build): added a sideEffects property for tree shaking package (#…
kkirik 1c2d298
chore(main): release 14.8.0 (#526)
gravity-ui-bot 1850ec4
Merge branch 'main' into add-empty-row
PMAWorks fd08ec7
Merge branch 'main' into add-empty-row
makhnatkin 8ed557d
fix PR
PMAWorks fce3aa8
Merge branch 'main' into add-empty-row
PMAWorks 51368a2
fix PR
PMAWorks 6ed0ce8
Merge branch 'main' into add-empty-row
PMAWorks File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
src/core/markdown/ProseMirrorTransformer/emptyRowTransformer.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import {TransformFn} from './index'; | ||
|
||
export const transformEmptyParagraph: TransformFn = (node) => { | ||
if (node.type !== 'paragraph') return; | ||
if (node.content?.length !== 1) return; | ||
if (node.content[0]?.type !== 'text') return; | ||
if (node.content[0].text === String.fromCharCode(160)) delete node.content; | ||
}; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.