Boostnote: Link to line/subheading in note

Created on 26 Oct 2018  Â·  3Comments  Â·  Source: BoostIO/Boostnote

Current behavior

Currently we are able to link to other notes (https://github.com/BoostIO/Boostnote/issues/41, https://github.com/BoostIO/Boostnote/issues/1111), but I don't believe we can link to a line/heading in that note.

Expected behavior

I want to be able to link to a specific section in another note.

eg. (following GitHub code link style)

https://github.com/BoostIO/Boostnote/blob/master/index.js#L23-L25

Suggested syntaxes (not sure best way to implement):

[Foo](:note:abc123ab-c073-4fcb-b024-7499270d0942#L23)
[Foo](:note:abc123ab-c073-4fcb-b024-7499270d0942:ln:23)

I'm not sure if/how to do it specifically, but if headings/subheadings in notes had a unique id (eg. like the id or name tags in HTML), then we could potentially reference them in a similar way:

[Foo](:note:abc123ab-c073-4fcb-b024-7499270d0942#myTitleID)
[Foo](:note:abc123ab-c073-4fcb-b024-7499270d0942:id:myTitleID)

Environment

  • Version : 0.11.8
  • OS Version and name : macOS Mojave 10.14

Most helpful comment

IMHO linking to a line in not as robust as linking to a headline/anchor…

All 3 comments

Similar discussion at #2475

Closing in favour of that issue (and #2494)

Looks like it should land in 0.11.11

IMHO linking to a line in not as robust as linking to a headline/anchor…

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cyber-arsenull picture cyber-arsenull  Â·  3Comments

npeeples picture npeeples  Â·  3Comments

Rokt33r picture Rokt33r  Â·  3Comments

NonlinearFruit picture NonlinearFruit  Â·  3Comments

ysshah picture ysshah  Â·  3Comments