Markus
GitHub-flavored Markdown with a small vocabulary for layout intent.
Markus keeps Markdown as the content language, then adds colon-fenced directives for the things GFM cannot say: this is a pull quote, these items are peer cards, these two views belong together. Authors encode meaning. The renderer turns that meaning into accessible HTML and responsive CSS — or, later, print, EPUB, or email.
Install
pip install anthus-markus
Python 3.10 or newer.
Convert a page
markus convert examples/getting-started.md -o page.html
markus validate examples/getting-started.md
markus ast examples/getting-started.md
Python API:
from markusmd import convert
html = convert(open("page.md", encoding="utf-8").read())
Directives
:::pull-quote{attribution="Engineering principle" tone="primary"}
The best system is often the one whose failure modes you can explain.
:::
:::feature-grid{columns=3}
:::feature-card{icon="bolt"}
## Low latency
Keep common interactions local.
:::
:::
The 0.1 vocabulary:
| Directive | Intent |
|---|---|
callout (note, warning, tip, caution) |
Status or editorial note |
pull-quote |
Editorial quotation |
card-grid / card |
Peer items |
two-up / column |
A conceptual pair |
figure |
Media with caption and credit |
details |
Progressive disclosure |
aside |
Supporting, non-linear material |
metric |
A labeled fact (::metric{...}) |
Unknown names and unknown attributes fail validation. That is intentional: Markus must not decay into an untyped CSS API. See docs/LANGUAGE.md for the full contract.
Demo site
anthusai.github.io/Markus/ — written in Markus and built by Markus.
To run the same site locally:
pip install -e ".[dev]"
markus site site --out _site --serve --port 43147
Preview locally
markus preview examples/getting-started.md
Development
pip install -e ".[dev]"
behave # Gherkin behavior specs
ruff check src features
python -m build
License
MIT © Anthus AI Solutions
Metadata
Release files for anthus-markus 0.5.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 | |
|---|---|---|---|
| anthus_markus-0.5.1.tar.gz | 62.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| anthus_markus-0.5.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 119.6 kB
Release files / anthus_markus-0.5.1.tar.gz
| Download URL | anthus_markus-0.5.1.tar.gz |
|---|---|
| Size | 62.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9f466140fee6b8cae380b7f0cae131a90c3b71fafa3e405fae0f37931d31161b
|
|
BLAKE2b-256 checksum How to use checksums |
28c2a3a78cb6b29e4c2967c4f3b2c2d253dc4a1e77fb141bc6b5ec85369beeaf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.
Transparency logRelease files / anthus_markus-0.5.1-py3-none-any.whl
| Download URL | anthus_markus-0.5.1-py3-none-any.whl |
|---|---|
| Size | 57.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
22ab7048f4489f66e7dec8c1ee0eb64741911211b417c07b2886223a16b03058
|
|
BLAKE2b-256 checksum How to use checksums |
8bb01e21a3a91a2e8e8a81dbdca50438c12ba0913afa0f072d5c1be423540f05
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.
Transparency log