mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-13 07:56:14 +01:00
This commit is contained in:
parent
82e552aafc
commit
50f123dfc1
1 changed files with 3 additions and 1 deletions
|
|
@ -573,7 +573,9 @@ export class Outline extends Model {
|
|||
} else {
|
||||
let previousElement = getPreviousBlock(nodeElement);
|
||||
while (previousElement) {
|
||||
if (previousElement.getAttribute("data-type") === "NodeHeading") {
|
||||
if (previousElement.getAttribute("data-type") === "NodeHeading" &&
|
||||
!previousElement.parentElement.classList.contains("bq") &&
|
||||
!previousElement.parentElement.classList.contains("callout-content")) {
|
||||
break;
|
||||
} else {
|
||||
previousElement = getPreviousBlock(previousElement);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue