Similar to this thread I’m looking for a way of inserting a block id that can reference from other notes. Currently I have certain notes that I refer to as “annotations” which are basically atomic quote notes.
An example notes looks something like this:
---
id: A-202301261028
quote: My walk... is a public one. My business is in the world; and I must mix in the assemblies of men, or quit the post which Providence seems to have assigned me"
sources:
- { person: [[William Wilberforce]], place: [[📕 Spark]], location: test }
- { place: [[📕 Leadership as an Identity]], location: Chapter 20 }
tags:
- servant-leadership
- faithfulness
---
\`\`\`dataviewjs
dv.view("dv-views/annotations/v1")
\`\`\`
^d117db
This works great for the note itself, and even on my specific “book” or “person” notes I can easily list all related quotes like this:
dv.view("dv-views/book-annotations/v1")
Now the only remaining requirement/request I have is to insert a custom ^quote
(see first image for reference). This way anytime I want to reference (typically with translucency) I can do something like ![[A-202301261028^quote]]
I’ve tried to so something like this in my index.js
, but it did not create the same html markup as a proper block ID and ultimately it didn’t work to be recognized by my separate note.
dv.el("div",
dv.el("span", "^quote ", { cls: "cm-blockid", spellcheck:"false"}),
{ cls: "cm-line"}
);
Would love any help I could get with this, curious if its possible and if not, how could I get it on the roadmap?