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.
Metadata
Release files for mkdocs-mask-plugin 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mkdocs_mask_plugin-0.1.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mkdocs_mask_plugin-0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.5 kB
Release files / mkdocs_mask_plugin-0.1.tar.gz
| Download URL | mkdocs_mask_plugin-0.1.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b6632b2a74dc189973cc82e1f2c088d92491ebb61dfbe67902abacbca4b77363
|
|
BLAKE2b-256 checksum How to use checksums |
d2b1099c3a463528c7aefabbb6965f0167073614606b55f6dd932e43681c18bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / mkdocs_mask_plugin-0.1-py3-none-any.whl
| Download URL | mkdocs_mask_plugin-0.1-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1dd26f4992ba48dd95fff2c9fb2a489437a93a2343989402b8b6266edc1a959a
|
|
BLAKE2b-256 checksum How to use checksums |
b2e09018439cb44df9607f3cd1758d38198cf1d7a89032226efeb21356462277
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|