-
-
Notifications
You must be signed in to change notification settings - Fork 550
feat: Better parsing of external HTML attributes & inline styles #1605
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
Open
matthewlipski
wants to merge
14
commits into
main
Choose a base branch
from
lossy-html-fixes
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
8cad7bd
Fixed parsing of numbered list start index, background color mark, an…
matthewlipski 1b23c70
Fixes
nperez0111 13acc7e
Reverted lost fixes
matthewlipski c8bc46f
WIP
matthewlipski 8af8476
WIP
matthewlipski 86214e5
WIP
matthewlipski b47de6a
Moved color props to block content from block container
matthewlipski a6389c7
Removed unneeded attributes from `BlocAttributes`
matthewlipski 0ced7f2
Reverted `serializeBlocksExternalHTML.ts`
matthewlipski ced52b4
Reverted server-util `package.json`
matthewlipski 2bbdd6c
Small fix
matthewlipski 1b999ca
Updated tests in other packages
matthewlipski ab09848
Updated PW snapshots
matthewlipski 0f029ff
fix: Lossy html conversion equality (#1635)
matthewlipski 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
2 changes: 1 addition & 1 deletion
2
...s/xl-multi-column/src/test/conversions/__snapshots__/multi-column/undefined/external.html
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 |
---|---|---|
@@ -1 +1 @@ | ||
<div class="bn-block-column-list" data-node-type="columnList" data-id="1" style="display: flex;"><div class="bn-block-column" data-node-type="column" data-id="2" data-width="1" style="flex-grow: 1;"><p class="bn-block-content" data-node-type="blockOuter" data-id="3" data-content-type="paragraph">Column Paragraph 0</p><p class="bn-block-content" data-node-type="blockOuter" data-id="4" data-content-type="paragraph">Column Paragraph 1</p></div><div class="bn-block-column" data-node-type="column" data-id="5" data-width="1" style="flex-grow: 1;"><p class="bn-block-content" data-node-type="blockOuter" data-id="6" data-content-type="paragraph">Column Paragraph 2</p><p class="bn-block-content" data-node-type="blockOuter" data-id="7" data-content-type="paragraph">Column Paragraph 3</p></div></div> | ||
<div class="bn-block-column-list" data-node-type="columnList" data-id="1" style="display: flex;"><div class="bn-block-column" data-node-type="column" data-id="2" data-width="1" style="flex-grow: 1;"><p>Column Paragraph 0</p><p>Column Paragraph 1</p></div><div class="bn-block-column" data-node-type="column" data-id="5" data-width="1" style="flex-grow: 1;"><p>Column Paragraph 2</p><p>Column Paragraph 3</p></div></div> | ||
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
14 changes: 12 additions & 2 deletions
14
tests/src/unit/core/clipboard/copy/__snapshots__/text/html/childToParent.html
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 |
---|---|---|
@@ -1,2 +1,12 @@ | ||
<p>Paragraph 1</p> | ||
<p>Nested Paragraph 1</p> | ||
<p | ||
class="bn-block-content" | ||
data-node-type="blockOuter" | ||
data-id="1" | ||
data-content-type="paragraph" | ||
>Paragraph 1</p> | ||
<p | ||
class="bn-block-content" | ||
data-node-type="blockOuter" | ||
data-id="2" | ||
data-content-type="paragraph" | ||
>Nested Paragraph 1</p> |
28 changes: 24 additions & 4 deletions
28
tests/src/unit/core/clipboard/copy/__snapshots__/text/html/childrenToNextParent.html
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 |
---|---|---|
@@ -1,4 +1,24 @@ | ||
<p>Nested Paragraph 1</p> | ||
<p>Nested Paragraph 2</p> | ||
<p>Nested Paragraph 3</p> | ||
<p>Paragraph 2</p> | ||
<p | ||
class="bn-block-content" | ||
data-node-type="blockOuter" | ||
data-id="2" | ||
data-content-type="paragraph" | ||
>Nested Paragraph 1</p> | ||
<p | ||
class="bn-block-content" | ||
data-node-type="blockOuter" | ||
data-id="3" | ||
data-content-type="paragraph" | ||
>Nested Paragraph 2</p> | ||
<p | ||
class="bn-block-content" | ||
data-node-type="blockOuter" | ||
data-id="4" | ||
data-content-type="paragraph" | ||
>Nested Paragraph 3</p> | ||
<p | ||
class="bn-block-content" | ||
data-node-type="blockOuter" | ||
data-id="5" | ||
data-content-type="paragraph" | ||
>Paragraph 2</p> |
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.