Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New list type: Steps #7760

Open
4 tasks done
ofek opened this issue Nov 28, 2024 · 3 comments
Open
4 tasks done

New list type: Steps #7760

ofek opened this issue Nov 28, 2024 · 3 comments
Labels
change request Issue requests a new feature or improvement

Comments

@ofek
Copy link
Collaborator

ofek commented Nov 28, 2024

Context

https://squidfunk.github.io/mkdocs-material/reference/lists/

Description

It would be nice to have a dedicated way to display list items that represent steps the user must follow to achieve a particular task.

Related links

Use Cases

A user must follow directions to achieve a desired outcome like the installation of a program.

Visuals

image

image

Before submitting

@squidfunk
Copy link
Owner

Thanks for suggesting! We already have this on our list, and we'll revisit this once we got our current efforts sorted out ☺️

@squidfunk squidfunk added the change request Issue requests a new feature or improvement label Nov 28, 2024
@A3Bagged
Copy link

A3Bagged commented Dec 19, 2024

I've actually came up with a markdown extension for this.
i was looking for the same thing.

I don't know python well so code could be improved but i've done my best and it works.
I've included it on my ci.yml with pip install stepslist so that i can use it online.

Link to repo

I've tried making it with <steps> & </steps> tags but after 2 days of tinkering i found out that markdown or mkdocs closes any open html tags so it would actually output as:

<p><steps></steps></p>
<ol>
<li>

etc..

for further info take a look at #7775

Changing to using --steps-- & --!steps-- has allowed me to do this.

These can then be styled with css using the class name .md-steps and ::before ::after pseudo elements to have something like your example.

Mine currently look like this
image

@squidfunk
Copy link
Owner

Looks great, thanks for sharing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change request Issue requests a new feature or improvement
Projects
None yet
Development

No branches or pull requests

3 participants