mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-07 01:08:49 +01:00
This commit is contained in:
parent
0d9b8feeda
commit
e923a88586
1 changed files with 8 additions and 1 deletions
|
|
@ -898,7 +898,14 @@ ${genHintItemHTML(item)}
|
|||
this.lastIndex = -1;
|
||||
this.splitChar = "";
|
||||
extend.forEach((item) => {
|
||||
const currentLastIndex = currentLineValue.lastIndexOf(item.key);
|
||||
let currentLastIndex = currentLineValue.lastIndexOf(item.key);
|
||||
// https://ld246.com/article/1701670704754
|
||||
if (Constants.BLOCK_HINT_KEYS.includes(item.key) && currentLastIndex > -1) {
|
||||
const thirdLastIndex = currentLineValue.lastIndexOf(item.key + item.key.substring(0, 1))
|
||||
if (thirdLastIndex > -1) {
|
||||
currentLastIndex = Math.min(currentLastIndex, currentLineValue.lastIndexOf(item.key + item.key.substring(0, 1)))
|
||||
}
|
||||
}
|
||||
if (this.lastIndex < currentLastIndex) {
|
||||
if (Constants.BLOCK_HINT_KEYS.includes(this.splitChar) &&
|
||||
(item.key === ":" || item.key === "#" || item.key === "/" || item.key === "、")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue