Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link to line/subheading in note #2538

Closed
0xdevalias opened this issue Oct 26, 2018 · 3 comments
Closed

Link to line/subheading in note #2538

0xdevalias opened this issue Oct 26, 2018 · 3 comments

Comments

@0xdevalias
Copy link

0xdevalias commented Oct 26, 2018

Current behavior

Currently we are able to link to other notes (#41, #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
@nagledb
Copy link
Contributor

nagledb commented Oct 26, 2018

Similar discussion at #2475

@0xdevalias
Copy link
Author

0xdevalias commented Oct 26, 2018

Closing in favour of that issue (and #2494)

Looks like it should land in 0.11.11

@pihentagy
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants