yari icon indicating copy to clipboard operation
yari copied to clipboard

Autogenerate id attributes from dt elements?

Open schalkneethling opened this issue 3 years ago • 1 comments

Discussed in https://github.com/mdn/yari/discussions/4990

Originally posted by wbamberg November 24, 2021 This came out of https://github.com/mdn/content/pull/10730, and it had occurred to me before. It used to be possible to add id attributes to random bits of markup so we could link to them, and that's no longer possible in Markdown. In fact one of the main areas this is annoying is in <dl> elements, which we use pretty extensively in MDN. For instance, it would be nice to be able to link to the values of CSS properties.

So I wondered if we might generate id attributes for <dt> elements in the Markdown-to-HTML step, ad we currently do for headings.

schalkneethling avatar Aug 10 '22 18:08 schalkneethling

Also check this issue mdn/content#19625. I think that issue is also linked with this.

iSatVeerSingh avatar Aug 16 '22 10:08 iSatVeerSingh

It appears that auto-generating ids for <dt> elements has already been implemented in #5190.

/cc @wbamberg

caugner avatar Aug 18 '22 18:08 caugner