Better handling of formatting in pasted text

This commit is contained in:
Scott Nonnenberg 2023-05-23 15:00:05 -07:00 committed by GitHub
parent d012779e87
commit a31cf5645e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 105 additions and 43 deletions

View file

@ -15,7 +15,6 @@ import type {
RangeNode,
} from '../../types/BodyRange';
import {
SPOILER_REPLACEMENT,
BodyRange,
insertRange,
collapseRangeTree,
@ -215,12 +214,6 @@ function renderNode({
}
}
>
<span
aria-hidden
className="MessageTextRenderer__formatting--spoiler--copy-target"
>
{SPOILER_REPLACEMENT}
</span>
<span aria-hidden>{content}</span>
</span>
);