I stumbled uppon this thing last days and i cant figure it out if it’s a feature or a bug.
So it goes like this:
I have a Bunch of Persons as Objects in a page within a #person
codeblock like described in the silverbullet manual with ---
as delimiter between the persons:
name: Mary
birthday: 2000-02-14
---
name: Peter
birthday: 1986-05-06
---
name: John
birthday: 1996-06-13
---
name: Anna
birthday: 1991-12-17
---
name: Jim
birthday: 1983-09-28
---
name: Susan
birthday: 1987-07-10
When I query the table of persons I get following references for each person:
The first one is correct (the x-th character on the page) but the following person has the ascending number after the first so Peter
has the pos: 77, John
pos: 78 and so on. When i create a link to that person using this reference it jumps to the 77th character of the page, and not to John.
I found a workaround to this by adding each person to its own #person
codeblock like this:
name: Mary
birthday: 2000-02-14
name: Peter
birthday: 1986-05-06
name: John
birthday: 1996-06-13
name: Anna
birthday: 1991-12-17
name: Jim
birthday: 1983-09-28
name: Susan
birthday: 1987-07-10
And if I query the persons, I get the correct reference positions so i can easily link that person using its reference position:
@zef is this an intended feature of referencing a person by its position within the codeblock, or is this a know bug and it will be fixed in the future? I looked for related issues on github, but didn’t found anything related to this.