Skip to content

Create unique IDs for definition terms #355

Description

@gvwilson

It's common to use a definition list for a glossary, in which case it is helpful to be able to link directly from a term's use to its definition:

<p>
  The <a href="#fnord">fnordification</a> of blazwhup is...
</p>
...
<dl>
  <dt id="fnord">fnord</dt>
  <dd>...definition...</dd>
</dl>

Creating the link is easy in Kramdown-flavored Markdown:

The [fnordification](#fnord) of blazwhup is...

but there's no easy way to create the id for the dt. It would be very helpful if Kramdown auto-generated IDs, and better yet if it was possible to provide a prefix for the whole dl so that if there are several dl's in a single page, the IDs for the dts in that dl will have prefixed (unique) IDs.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions