zensical-macros-utils is a zensical-based project that provides macros to extend cards, code blocks, etc, in Zensical documents.
Project description
zensical-macros-utils
zensical-macros-utils is a zensical-based project that provides macros to extend cards, code blocks, etc, in Zensical documents.
Features
- Link Card: Create link cards with images and descriptions, etc
- Gist Code Block: Embed and syntax-highlight code from GitHub Gists
- X/Twitter Card: Embed tweets with proper styling and dark mode support
Usage
Install zensical-macros-utils
# For pip
pip install zensical-macros-utils
# For uv
uv add zensical-macros-utils
Config settings
-
Add the extension to your
zensical.tomlextra_css = [ "stylesheets/macros-utils/link-card.css", "stylesheets/macros-utils/gist-cb.css", "stylesheets/macros-utils/x-twitter-link-card.css", ] extra_javascript = [ "javascripts/macros-utils/x-twitter-widget.js", ] [project.plugins.macros] modules = ["zensical_macros_utils"] [project.extra.debug] link_card = false gist_codeblock = false x_twitter_card = false
-
Start the development server
uv run zensical serve
The plugin will automatically create the required directories and copy CSS/JS files during the build process.
Documentation
For detailed usage and examples, please see the documentation.
License
MIT License - see the LICENSE file for details.
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 zensical_macros_utils-0.1.1.tar.gz.
File metadata
- Download URL: zensical_macros_utils-0.1.1.tar.gz
- Upload date:
- Size: 2.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
356818699a59b09136de1253f58a7d9486f99bd6bba2e9639a6b9fc993bbbeac
|
|
| MD5 |
195510f3ec374e79928b78e4b8d5410d
|
|
| BLAKE2b-256 |
fbf27a032a00d9921090fcda830f2a5e02af323ff8f4bc6de9dd1c7e80e399ae
|
File details
Details for the file zensical_macros_utils-0.1.1-py3-none-any.whl.
File metadata
- Download URL: zensical_macros_utils-0.1.1-py3-none-any.whl
- Upload date:
- Size: 19.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5af01f76dccfd4768a55ba67bba10382ddd938ca24937ab9d4ed8f72aa9da942
|
|
| MD5 |
8dd22f8600a277b14fd2c24a5c5eed07
|
|
| BLAKE2b-256 |
7db47042d2387a977d11ffbb40a055035a8bf93ec1852c2d944c813ce0a5741d
|