
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
mkdocs-color-swatch-plugin
Advanced tools
A MkDocs plugin for inline color swatches with tooltip and hover effects
A lightweight plugin that lets you insert inline color swatches into your Markdown docs using a simple, readable syntax.
#ff0000
/#f00
rgb(255, 0, 0)
rgba(255, 0, 0, 0.5)
Visit demo: https://fabieu.github.io/mkdocs-color-swatch-plugin/
Install the plugin from PyPI using pip
:
pip install mkdocs-color-swatch-plugin
Then enable it in your mkdocs.yml
:
plugins:
- color-swatch
Make sure you have mkdocs
installed:
pip install mkdocs
To add swatches to your Markdown, use the simple, custom inline format:
:color[#e74c3c]: -> Red
:color[rgb(52, 152, 219)]: -> Green
:color[rgba(46, 204, 113, 0.6)]: -> Blue
Each tag will render as:
Instead of manually writing HTML for every color sample like:
<span style="background-color: #e74c3c; width: 30px; height: 30px; ..."></span>
You can just write:
:color[#e74c3c]:
It's faster, cleaner, and scales dynamically with your content.
hex
, rgb()
, and rgba()
color valuesClone the project repository and configure the environment with Poetry:
git clone https://github.com/yourusername/mkdocs-color-swatch-plugin.git
cd mkdocs-color-swatch-plugin
poetry install
poetry install
pip install -e .
This allows you to test your changes directly when running MkDocs locally.
MIT © Fabian Eulitz
FAQs
A MkDocs plugin for inline color swatches with tooltip and hover effects
We found that mkdocs-color-swatch-plugin 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.