mirror of
https://github.com/marktext/marktext.git
synced 2025-05-08 01:20:30 +08:00
fix(#450) style error when render inline math
This commit is contained in:
parent
5ff7f7b92e
commit
af38ca1a85
@ -156,7 +156,7 @@ span.ag-math {
|
|||||||
padding: .5rem;
|
padding: .5rem;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 30px;
|
top: 100%;
|
||||||
left: 0;
|
left: 0;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
}
|
}
|
||||||
|
@ -76,8 +76,8 @@ const pasteCtrl = ContentState => {
|
|||||||
const text = event.clipboardData.getData('text/plain')
|
const text = event.clipboardData.getData('text/plain')
|
||||||
let html = event.clipboardData.getData('text/html')
|
let html = event.clipboardData.getData('text/html')
|
||||||
html = this.standardizeHTML(html)
|
html = this.standardizeHTML(html)
|
||||||
console.log(text)
|
// console.log(text)
|
||||||
console.log(html)
|
// console.log(html)
|
||||||
const copyType = this.checkCopyType(html, text)
|
const copyType = this.checkCopyType(html, text)
|
||||||
const { start, end } = this.cursor
|
const { start, end } = this.cursor
|
||||||
const startBlock = this.getBlock(start.key)
|
const startBlock = this.getBlock(start.key)
|
||||||
|
Loading…
Reference in New Issue
Block a user