A MkDocs plugin that adds a custom syntax to hide text behind a black box until hovered.
Project description
Mkdocs Mask Plugin
A MkDocs plugin that adds a custom !mask[...] syntax to hide text behind a black box until hovered.
Install
pip install mkdocs-mask-plugin
Usage
1. Enable the Plugin
In your mkdocs.yml configuration file, add the plugin:
plugins:
- mask
2. Use the !mask[...] Syntax in Markdown
In any Markdown (.md) file, wrap the sensitive or hidden text using the !mask[...] syntax:
Do not reveal this unless you're ready: !mask[This is a hidden message].
This will render as a black box that hides the text until the user hovers over it.
3. Resulting Behavior
The masked content will appear as a blacked-out block like this:
Do not reveal this unless you're ready: ██████████████████
When the user hovers their mouse over it, the black box fades away and the original text is revealed with a smooth transition.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mkdocs_mask_plugin-0.1.tar.gz.
File metadata
- Download URL: mkdocs_mask_plugin-0.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6632b2a74dc189973cc82e1f2c088d92491ebb61dfbe67902abacbca4b77363
|
|
| MD5 |
b6e7ae32aa040ad0eb89882fed9e1d02
|
|
| BLAKE2b-256 |
d2b1099c3a463528c7aefabbb6965f0167073614606b55f6dd932e43681c18bb
|
File details
Details for the file mkdocs_mask_plugin-0.1-py3-none-any.whl.
File metadata
- Download URL: mkdocs_mask_plugin-0.1-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1dd26f4992ba48dd95fff2c9fb2a489437a93a2343989402b8b6266edc1a959a
|
|
| MD5 |
5bc7b0a0f4bc296518c169ad117bdfb4
|
|
| BLAKE2b-256 |
b2e09018439cb44df9607f3cd1758d38198cf1d7a89032226efeb21356462277
|