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

Implement links/targets within a page #1

Open
Klortho opened this issue Nov 1, 2013 · 0 comments
Open

Implement links/targets within a page #1

Klortho opened this issue Nov 1, 2013 · 0 comments

Comments

@Klortho
Copy link
Owner

Klortho commented Nov 1, 2013

Allowing intra-page links, to targets within an entry (for example, the ones at the top of this page).

Because we're using the fragment identifier to specify the entry itself, we'll need something like #p=entry;t=target.

Details:

  • Treat it as a state machine, with these states:
    • p = null; t = null (top of home)
    • p = $page; t = null (top of $page)
    • p = null; t = $target ($target within home)
    • p = $page; t = $target ($target within $page)
  • Make sure you cover/test all of the transitions:
    • From outside directly into a given state
    • Between the states
  • Make sure "http://.../" and "http://.../#" are treated exactly the same in every case.
  • Add killer feature: a permalink icon (e.g. GitHub's .octicon-link - UTF+f05c (https://github.com/styleguide/css/7.0)) that appears whenever you hover over a header that has an @id and/or @name.
@Klortho Klortho changed the title Implement targets within a page Implement links/targets within a page Apr 23, 2015
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

1 participant