On 2016-08-12 14:21 -0700 Luc Bourhis wrote:
> So far so good. But in order to refer to it in the text elsewhere,
> one needs to type
>
> See [My header](#my-header) for enlightenment
>
> It would be nice if kramdown automatically created a link definition
>
> [My header]: #my-header
kramdown currently doesn't have such a feature. One reason why this may
be a bit difficult to implement is that the automatic IDs are only
created when converting the internal representation to HTML, not when
parsing. But inline reference links are created during the parsing
phase because we need to know whether `[My header]` is a reference link
or just text.
What is already possible is using the option "link_defs" for providing
link definitions. This is used, for example, in the static website
generator webgen to allow automatic linking to headers.
Best regards,
Thomas