speced / respec

A tool for creating technical documents and web standards
https://respec.org/
Other
709 stars 376 forks source link

Show the full step number from algorithm step #3875

Open marcoscaceres opened 2 years ago

marcoscaceres commented 2 years ago

Is your feature request related to a problem? Please describe. For deeply nested algorithms (or any algorithm really), it would be nice to somehow get the step number (e.g., "step 3.4.5.2").

Additional context

For example:

Screen Shot 2021-11-15 at 10 29 45 am

xfq commented 2 years ago

FYI, some documents I'm working on also have this kind of deep list, for example, this list is 4 levels deep: https://xfq.github.io/testing/jlreq-li-self-links/#id637

(I added ¶ to the left of each item, which can be used to link to the item. However, many algorithm steps don’t have IDs, so we should probably generate the step number and write it to the clipboard.)

marcoscaceres commented 2 years ago

ah, nice one @xfq. Yeah, want to build something like that.