Skip to content

Commit

Permalink
fix: remove duplicate highlights by adding parent block id in the dat…
Browse files Browse the repository at this point in the history
…ascript query
  • Loading branch information
sywhb committed Sep 19, 2022
1 parent c9d01df commit ac6d534
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ const fetchOmnivore = async (inBackground = false) => {
:where
[?b :block/page ?p]
[?p :block/original-name "${pageName}"]
[?b :block/parent ?parent]
[?parent :block/uuid ?u]
[(str ?u) ?s]
[(= ?s "${targetBlock.uuid}")]
[?b :block/content ?c]
[(clojure.string/includes? ?c "${article.slug}")]]`
)
Expand Down

0 comments on commit ac6d534

Please sign in to comment.