mirror of
https://github.com/marktext/marktext.git
synced 2025-05-07 11:01:03 +08:00
bug: can not use quick insert in math block and front matter
This commit is contained in:
parent
2f87d334dc
commit
e1ac8e2977
@ -345,6 +345,11 @@ li.ag-task-list-item > input.ag-checkbox-checked ~ * {
|
|||||||
color: var(--regularColor);
|
color: var(--regularColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
li.ag-task-list-item > input.ag-checkbox-checked ~ p {
|
||||||
|
text-decoration: line-through;
|
||||||
|
color: var(--secondaryColor);
|
||||||
|
}
|
||||||
|
|
||||||
li.ag-task-list-item > input[type=checkbox]::before {
|
li.ag-task-list-item > input[type=checkbox]::before {
|
||||||
content: '';
|
content: '';
|
||||||
width: 16px;
|
width: 16px;
|
||||||
@ -475,9 +480,10 @@ pre.ag-active.ag-code-block::before,
|
|||||||
pre.ag-active.ag-code-block::after,
|
pre.ag-active.ag-code-block::after,
|
||||||
pre.ag-active.ag-multiple-math::before,
|
pre.ag-active.ag-multiple-math::before,
|
||||||
pre.ag-active.ag-multiple-math::after {
|
pre.ag-active.ag-multiple-math::after {
|
||||||
color: var(--placeholerColor);
|
color: var(--regularColor);
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
font-weight: 600;
|
||||||
left: 0;
|
left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -590,7 +596,8 @@ span.ag-emoji-marked-text {
|
|||||||
left: 30px;
|
left: 30px;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
color: var(--secondaryColor);
|
font-weight: 600;
|
||||||
|
color: var(--activeColor);
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border: none;
|
border: none;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
|
@ -92,8 +92,8 @@ const updateCtrl = ContentState => {
|
|||||||
|
|
||||||
// Input @ to quick insert paragraph
|
// Input @ to quick insert paragraph
|
||||||
ContentState.prototype.checkQuickInsert = function (block) {
|
ContentState.prototype.checkQuickInsert = function (block) {
|
||||||
const { type, text } = block
|
const { type, text, functionType } = block
|
||||||
if (type !== 'span') return false
|
if (type !== 'span' || functionType) return false
|
||||||
return /^@[a-zA-Z\d]*$/.test(text)
|
return /^@[a-zA-Z\d]*$/.test(text)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
}
|
}
|
||||||
.ag-quick-insert .active,
|
.ag-quick-insert .active,
|
||||||
.ag-quick-insert div.item:hover {
|
.ag-quick-insert div.item:hover {
|
||||||
background-color: #ecf5ff;
|
background-color: rgb(243, 243, 243);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ag-quick-insert .no-result {
|
.ag-quick-insert .no-result {
|
||||||
|
Loading…
Reference in New Issue
Block a user