Skip to content

Commit

Permalink
🐛 fix #10330
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Feb 6, 2024
1 parent f6703be commit 6fe5754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/protyle/wysiwyg/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range:
if (blockElement.classList.contains("table")) {
scrollLeft = getContenteditableElement(blockElement).scrollLeft;
}
if (/<span data-type="backslash">.<\/span><wbr>/.test(html)) {
if (/<span data-type="backslash">.+<\/span><wbr>/.test(html)) {
// 转义不需要添加 zwsp
blockElement.outerHTML = html;
} else {
Expand Down

0 comments on commit 6fe5754

Please sign in to comment.