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.
Two things live here. The library is anthus-markus on PyPI (import markusmd, CLI markus), in src/markusmd/, specified by Gherkin features in features/. The documentation site is site/ (Markus pages and site.css) plus docsite/build_site.py (navigation, banner, theme picker, Anthus footer, GA4).
How it relates to the rest of the platform: Papyrus uses Markus as the content language of its sites and renders this documentation site (the build imports papyrus_content.markus_renderer). The sister Papyrus sites are Anth.us, Pilobol.us, Threat Intelligence, Tactus and p.apyr.us. Cyclotron, Prospectus, Biblicus and Tactus are separate projects; this repository does not depend on them.
| Thing | Value |
|---|---|
| Library | PyPI project anthus-markus (latest release 0.14.0), published by GitHub Actions with trusted publishing |
| Documentation site | https://markus.anth.us/ on GitHub Pages, deployed from main by .github/workflows/pages.yml (Pages source: GitHub Actions workflow, HTTPS enforced). No AWS resources serve it; the only AWS part is DNS: markus is a CNAME to anthusai.github.io in the anth.us hosted zone of the papyrus-production account (712236451410). |
| Papyrus pin for the site | papyrus-newsroom[markus]==5.28.0 in docsite/requirements.txt |
| Analytics | Google Analytics 4 (G-31SC26SDGX) with Consent Mode v2 and a cookie banner, emitted by Papyrus; privacy link https://anth.us/privacy/. The footer "Contact us" link goes to https://anth.us/engage/?solution=Markus&cta=contact. |
- Branch from
mainand open a pull request tomain(see AGENTS.md for whymainand notdevelop). CI(.github/workflows/ci.yml) runsruff check src featuresandbehaveon Python 3.10 to 3.13.- A push to
mainrunsGitHub Pages(builds withdocsite/build_site.py, deploys to Pages) and, after CI succeeds,Semantic Release.fix:releases a patch andfeat:a minor version;docs:,chore:,refactor:andtest:release nothing. A release tagsvX.Y.Z, updatesCHANGELOG.mdandPublish to PyPIuploads it. While pre-1.0 the workflow refuses any1.xrelease. - To take a newer Papyrus for the site, change the pin in
docsite/requirements.txt(adocs:commit, so nothing is released), check the local build, and merge.
pip install anthus-markusPython 3.10 or newer.
markus convert examples/getting-started.md -o page.html
markus validate examples/getting-started.md
markus ast examples/getting-started.mdPython API:
from markusmd import convert
html = convert(open("page.md", encoding="utf-8").read()):::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 core vocabulary. The feature index documents every directive, with source and preview side by side.
| 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{...}) |
example |
Markus source beside its rendered preview, for documentation |
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.
markus.anth.us is the documentation and demo site. It is written in Markus (site/) and built by Papyrus with docsite/build_site.py. The older address anthusai.github.io/Markus/ is the same GitHub Pages deployment under the repository's default host.
To build the same site locally, use a virtual environment: Papyrus runs markus --version from PATH to check the version, so a different markus earlier on PATH makes the build fail.
python3 -m venv .venv && . .venv/bin/activate
pip install -r docsite/requirements.txt # Papyrus (pinned) and this checkout of Markus
python docsite/build_site.py --out _site # 27 pages
python -m http.server --directory _site 8000markus preview examples/getting-started.mdpip install -e ".[dev]"
behave # Gherkin behavior specs
ruff check src features
python -m buildAGENTS.md is the operating manual for agents and people. The language contract is docs/LANGUAGE.md; the Papyrus documentation index is docs/README.md.
MIT © Anthus AI Solutions