🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

Linking to anchors in the documentation #80

Closed

Description

@madx

I can't link to an anchor on the same documentation page. Here's and example of what I'm trying to achieve

/**
 * This is the documentation for my class.
 * 
 * [A link to another part of this documentation](#title)
 * 
 * [...]
 *
 * ## Title
 */
export default class Foo {}

The markdown parser correctly generates <h2 id="title">Title</h2> but the link to this anchor is made against the root of the documentation (<a href="/#title">).

Maybe there's an option for selecting the kind of links to generate? (Absolute or relative)

Activity

  1. madx commented on Sep 14, 2015

    @madx
    Author

    I found that this is due to the <base> tag in the template. Do you think there is a way to remove it somehow?

  2. added a commit that references this issue on Sep 21, 2015
  3. h13i32maru commented on Sep 21, 2015

    @h13i32maru
    Member

    @madx Hi! Thanks for this issue. Sorry for late reply.
    I fixed this problem in b1c9e67. You can use inner link:

    # Inner Link
    ...
    [foo](#inner-link)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions