Skip to content

TOC should use anchors generated from the headings #4

@koppor

Description

@koppor

Please directly the IDs of the generated HTML headings and do not introduce additional <div> tags. See also http://stackoverflow.com/a/27953547/873282

Currently, the script outputs something like following

#Summary 

  - [Generic code how tos](#section-id-3)

<div id='section-id-3'/>

## Generic code how tos
I would have expected following

#Summary 

  - [Generic code how tos](#generic-code-how-tos)

## Generic code how tos

An existing ruby implementation is provided at https://gist.github.com/albertodebortoli/9310424 (via http://stackoverflow.com/a/22131019/873282).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions