
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Extension for Python-Markdown: to be used on Mkdocs and Material for Mkdocs
This Python package provides a custom Markdown extension that allows users to define step blocks in their Markdown documents. The extension recognizes specific markers and formats the enclosed content for better readability.
--steps--
and --!steps--
markers.<div>
with a class for custom styling.To use this extension, ensure you have the markdown library installed. You can install it using pip:
pip install markdown
You can install this package using pip:
pip install stepslist
To use this extension, add it to your MkDocs configuration file (mkdocs.yml
):
markdown_extensions:
- stepslist
Now, you can use the --steps--
--!steps--
tag in your Markdown files:
[!IMPORTANT] Note that you will need blank lines between the tags and your list otherwise it will not work!
--steps--
1. Step one
2. Step two
3. Step three
--!steps--
This will be rendered as an ordered list within a div that you can style:
<div class="md-steps">
<ol>
<li>Step one</li>
<li>Step two</li>
<li>Step three</li>
</ol>
</div>
To style in CSS
you need the following selectors:
You can also style the ::before
and ::after
pseudo elements.
It's recommended to keep the .md-steps
styling for the div itself unchanged unless you need to
.md-steps ol {
/* Styling goes here */
}
.md-steps>ol>li {
/* Styling goes here */
}
/* Optional */
.md-steps>ol>li::before {
/* Styling goes here */
}
.md-steps>ol>li::after {
/* Styling goes here */
}
If you like this extension consider buying me a :coffee:coffee.
FAQs
A MkDocs extension to improve the visual of ordered lists.
We found that stepslist demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.