Skip to content

Commit

Permalink
Merge pull request #3956 from quilljs/zh-parchment-3
Browse files Browse the repository at this point in the history
  • Loading branch information
luin authored Jan 17, 2024
2 parents c911303 + 3536d82 commit be432e8
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
- Fix syntax label from "Javascript" to "JavaScript".
- Fix typing errors for emitter.
- Inline SVG images for easier bundler setup.
- Improve typing for Registry.

# v2.0.0-beta.0
# 2.0.0-beta.0

In the upcoming 2.0 release, Quill has been significantly modernized. Leveraging the latest browser-supported APIs, Quill now delivers a more efficient and reliable editing experience.

Expand Down
9 changes: 4 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/quill/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dependencies": {
"eventemitter3": "^5.0.1",
"lodash-es": "^4.17.21",
"parchment": "github:quilljs/parchment#9d148df41cc3d62ab07c25ebcead46a3d513d2c6",
"parchment": "^3.0.0-alpha.2",
"quill-delta": "^5.1.0"
},
"devDependencies": {
Expand Down
2 changes: 0 additions & 2 deletions packages/quill/src/modules/syntax.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,13 @@ class CodeToken extends Inline {
constructor(scroll: ScrollBlot, domNode: Node, value: unknown) {
// @ts-expect-error
super(scroll, domNode, value);
// @ts-expect-error
TokenAttributor.add(this.domNode, value);
}

format(format: string, value: unknown) {
if (format !== CodeToken.blotName) {
super.format(format, value);
} else if (value) {
// @ts-expect-error
TokenAttributor.add(this.domNode, value);
} else {
TokenAttributor.remove(this.domNode);
Expand Down
4 changes: 2 additions & 2 deletions scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const index = changelog.indexOf(UNRELEASED_PLACEHOLDER);
if (index === -1) {
exitWithError(`Could not find "${UNRELEASED_PLACEHOLDER}" in CHANGELOG.md`);
}
let nextVersionIndex = changelog.indexOf("\n# v", index);
let nextVersionIndex = changelog.indexOf("\n# ", index);
if (nextVersionIndex === -1) {
nextVersionIndex = changelog.length - 1;
}
Expand All @@ -110,7 +110,7 @@ fs.writeFileSync(
"CHANGELOG.md",
changelog.replace(
UNRELEASED_PLACEHOLDER,
`${UNRELEASED_PLACEHOLDER}\n\n# v${version}`
`${UNRELEASED_PLACEHOLDER}\n\n# ${version}`
)
);

Expand Down

0 comments on commit be432e8

Please sign in to comment.