Skip to main content

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

Build and Release

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

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkdocs_mask_plugin-0.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mkdocs_mask_plugin-0.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

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

Hashes for mkdocs_mask_plugin-0.1.tar.gz
Algorithm Hash digest
SHA256 b6632b2a74dc189973cc82e1f2c088d92491ebb61dfbe67902abacbca4b77363
MD5 b6e7ae32aa040ad0eb89882fed9e1d02
BLAKE2b-256 d2b1099c3a463528c7aefabbb6965f0167073614606b55f6dd932e43681c18bb

See more details on using hashes here.

File details

Details for the file mkdocs_mask_plugin-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocs_mask_plugin-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1dd26f4992ba48dd95fff2c9fb2a489437a93a2343989402b8b6266edc1a959a
MD5 5bc7b0a0f4bc296518c169ad117bdfb4
BLAKE2b-256 b2e09018439cb44df9607f3cd1758d38198cf1d7a89032226efeb21356462277

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page