Linking to specific headings and paragraphs!!! #14
renerocksai
announced in
Announcements
Replies: 2 comments 1 reply
-
I was going to request this but felt like it would be asking too much and then I see this. You, sir, are a hero. |
Beta Was this translation helpful? Give feedback.
0 replies
-
that is very nice :-) - thanks for all of it! Just wondering how I can insert a link to a header
does not show headers to insert for me. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Whaaaat a piece of work! Phew! 😅
Live from the README:
Telekasten now supports linking to headings and paragraphs within notes. The following link types are supported:
You can
follow_link()
all of the above, with the exception of media links, which you canpreview_img()
.Note that notes linked to with headings or paragraph IDs will not be created automatically. Non-existing notes will
be ignored, a global search will be performed instead.
For now, you have to create such links yourself. You can edit existing links and append headings, for example: From
[[The note]]
to[[The note#Some heading or subheading]]
.Regarding linking to paragraphs: The
^blockid
notation is supported by more and more tools now. It works like this:at the end of a line / paragraph you want to link to, you put some block id marker in the form of
^block-id
.typically, block ids are tool-generated - but no one can stop you defining your own.
^xAcSh-xxr
.instead of linking to a heading, you use the block id as heading:
[[Some note#^block-id]]
.instead of putting the block id at the end of a line, you can also make a line break and put it in the next line, like
illustrated below.
Beta Was this translation helpful? Give feedback.
All reactions