A question about links

Hello there,

I’m quite new with SilverBullet. I’m trying to understand how links work, notably I’m wondering about linking to a particular spot in a page. Let’s say I have a page like that:

# Page title

paragraph 1

paragraph2 

paragraph3

Let’s say I want to point to paragraph2, how can I do that in a way that will survive the introduction of new characters ? I tried the [[ PageName@characterName ]] syntax but it does not update itself when it’s shifting. Can I set a kind of anchor at this point or something ?

You need to use the # format. See both the format of this link and follow it to read the details: https://silverbullet.md/Link#Link%20syntax%20(String%20refs)

So that means I’m stuck with setting a header for this paragraph in order to target it ? or am I missing something?

Not entirely sure if I understand you, but it doesn't pick up changes in the header titles. If you change a page title, the links to it will be automatically updated, not so for headers.

Well, if we take the basic example, how can I target paragraph2 ? Do you have an example for that ?

Maybe the missing step is that you do need to use a header to link to it?

So if you page looks something like this:

# paragraph 1

# paragraph 2

## paragraph 2a

# paragraph 3

you can refer to the headers with [[test#paragraph2]]
It will even suggest options for you.

Ok I see. So I can target sections, but I can’t target arbitrary blocks of text like a block ref in Logseq.

Thanks!