Fix unnecessary character sanitation on clipboard output (#2197)

This commit is contained in:
Felix Häusler 2020-06-08 14:03:03 +02:00 committed by GitHub
parent c79f84e5cb
commit 393139e5c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,7 @@ const copyCutCtrl = ContentState => {
const { type, text, functionType } = startBlock
// Fix issue #942
if (type === 'span' && functionType === 'codeContent') {
const selectedText = escapeHtml(text.substring(start.offset, end.offset))
const selectedText = text.substring(start.offset, end.offset)
return {
html: marked(selectedText, this.muya.options),
text: selectedText
@ -212,7 +212,7 @@ const copyCutCtrl = ContentState => {
}
let htmlData = wrapper.innerHTML
const textData = escapeHtml(this.htmlToMarkdown(htmlData))
const textData = this.htmlToMarkdown(htmlData)
htmlData = marked(textData)
return { html: htmlData, text: textData }