Skip to content

Commit

Permalink
Include Parchment renaming in migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
luin committed Mar 19, 2024
1 parent 4a4a61f commit 2b9840d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/website/content/guides/upgrading-to-2-0.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ The Quill repository has been rewritten in TypeScript, providing an official Typ
This ended up being more confusing than helpful as we will no longer make use of this.

- `registry` - added to allow multiple editors with different formats to coexist on the same page. [Learn more](/docs/registries).
- `formats` *removed* - `registry` is now strictly more powerful and safer.

- `scrollingContainer` *removed*

Expand Down Expand Up @@ -48,6 +47,13 @@ The Quill repository has been rewritten in TypeScript, providing an official Typ
- Static `register` method added to allow dependent chains of registration.
- Static `formats` method now passes in `scroll`.
- Blot constructor now requires `scroll` to be passed in.
- Attributors are exported as top-level classes.

Instead of accessing class attributor via `Parchment.Attributor.Class`, you now use it at `Parchment.ClassAttributor`.
Similarly, `Parchment.Attributor.Style` is now `Parchment.StyleAttributor`, and `Parchment.Attributor.Attribute` is now `Parchment.Attributor`.
- Exports are using full names.

Instead of `Parchment.Scroll`, you now use `Parchment.ScrollBlot`. The similar change applies to `Parchment.Embed`, `Parchment.Text`, `Parchment.Block`, `Parchment.Inline`, and more.

## Delta

Expand Down
3 changes: 3 additions & 0 deletions packages/website/src/pages/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1120,6 +1120,9 @@ body:not(.home) .navbar-link:before {
content: ' ';
display: block;
}
#content-container li p {
margin-bottom: 0;
}
#content-container h1,
#content-container h2,
#content-container h3,
Expand Down

0 comments on commit 2b9840d

Please sign in to comment.