zensical-carve
Use Carve in a Zensical site, either as a block inside a
Markdown page or as a complete .crv page.
pip install zensical-carve
Carve blocks in Markdown
Register a pymdownx.superfences custom fence in zensical.toml:
pymdownx.superfences.custom_fences = [
{ name = "mermaid", class = "mermaid", format = "pymdownx.superfences.fence_code_format" },
{ name = "carve", class = "carve", format = "zensical_carve.fence" },
]
The formatter uses a dot between the module and function. Zensical does not
accept the module:function spelling here.
```carve
## Rendered by Carve
A *bold* and /italic/ line.
```
Complete Carve pages
Zensical does not discover .crv files as pages, so render them before the
site build:
zensical-carve prepare
zensical build
After configuration changes, use the combined command so it passes --clean
and avoids stale generated pages:
zensical-carve build
The converter writes a Markdown page beside each source. It returns headings and code blocks to Zensical as Markdown so the theme can build navigation, permalinks, syntax highlighting, and code controls. Other constructs remain Carve HTML to avoid a lossy whole-document Markdown conversion.
Frontmatter is copied to the generated page for Zensical to read.
Configuration
Settings may live in [tool.zensical-carve] inside zensical.toml or
pyproject.toml:
[tool.zensical-carve]
extensions = ["details", "tabs", "math-block"]
emoji = "twemoji"
docs-dir = "docs"
Command-line flags override the file. Configuration also controls symbol maps, raw HTML, diagram prerendering, and the Kroki endpoint. The default public Kroki service receives diagram source; use a private endpoint when needed.
Includes and build output
Includes are off by default. Enable them with includes = true or
--includes; this requires carve-lang 0.1.4 or newer. Carve fences inside
Markdown pages never expand includes. Generated pages record their source and
a generated marker.
Feature support
Most Carve HTML works directly. Theme-sensitive constructs, diagrams, emoji, heading links, code blocks, and diff blocks receive specific adapters. See the feature matrix and collision measurements before enabling a large extension set.
Reference
The complete reference documents configuration, commands, includes, theme adaptation, diagrams, reference documents, and known Zensical limits.
Development
Contributor setup, tests, and maintenance commands are in the development guide. Release steps are in the release guide.
Metadata
Release files for zensical-carve 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| zensical_carve-0.1.2.tar.gz | 42.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| zensical_carve-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 72.1 kB
Release files / zensical_carve-0.1.2.tar.gz
| Download URL | zensical_carve-0.1.2.tar.gz |
|---|---|
| Size | 42.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
94d21e6ff152516ef1cafc0296092197959ea1b69d6ac3354e7b3251a0392778
|
|
BLAKE2b-256 checksum How to use checksums |
75554998530f779b318749da20306fa86280bc80e0af121f5fcb5edd0fa4ddb1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / zensical_carve-0.1.2-py3-none-any.whl
| Download URL | zensical_carve-0.1.2-py3-none-any.whl |
|---|---|
| Size | 30.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0ee8004f4cc8188f6295e26942b88ec15d3d901b1cb221075735f95078e649bc
|
|
BLAKE2b-256 checksum How to use checksums |
e0891ff3a4707b295f3fdf0c918e6ee5b35003c06256ac5b53a3c3185f715851
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|