adflux
Lossless conversion between Markdown and Atlassian Document Format (ADF), the JSON document model of Jira and Confluence. Built so people and AI agents can read and write Jira issues and Confluence pages as Markdown without losing panels, macros, emoji, mentions, layouts or anything else.
uvx adflux to-adf page.md -p confluence > page.json
uvx adflux to-md issue.json -p jira
uvx adflux syntax # the Markdown dialect, for people and agents
uvx adflux macros toc # a Confluence macro's parameters and Markdown form
from adflux import to_adf, to_markdown
doc = to_adf("> [!WARNING]\n> Deploy freeze :status[ACTIVE]{color=red}", "jira")
markdown = to_markdown(doc, "jira")
What it does
| Lossless | Every schema-valid ADF document converts to Markdown and back to the same ADF (up to server-generated ids). Property tests generate random documents to hold this. |
| Idiomatic | Plain Markdown wherever it fits: **bold**, lists, GFM tables, - [ ] tasks, > [!NOTE] alerts, <https://…> smart links, :smile:. Directives (:::expand{title=…}, :status[DONE]{color=green}) cover the rest. |
| Complete | The ADF spec is generated from Atlassian's official JSON Schema, so every node, mark and attribute is known. Any node can be written as a directive named after it; raw ADF (```adf) is the last resort. |
| Product aware | Profiles for Jira and Confluence: product emoji shortcuts, the Confluence macro catalog (111 macros with their parameters), native macro mapping (:::info → panel, :::code → code block), and warnings when Jira will not render something. |
| Validated | Output is checked against the spec; adflux validate adds the full official JSON Schema pass with readable paths. |
Markdown at a glance
# Release 2.4 :rocket:
Owner :mention[@Ada]{id=557058:…}, due :date[2026-12-31], state :status[AT RISK]{color=yellow}.
> [!INFO]
> Feature flags ship off by default.
- [x] Draft notes
- [ ] Sign-off
:::expand{title="Rollout plan"}
| Stage | Users |
| :------ | ------: |
| Canary | 1% |
| GA | 100% |
:::
::toc{maxLevel=2}
The full reference is src/adflux/syntax.md (also adflux syntax).
Design notes: docs/design.md.
API
| Function | |
|---|---|
to_adf(markdown, profile="generic", strict=False, check=True) |
Markdown → ADF dict. strict turns warnings into errors. |
to_markdown(adf, profile="generic", keep_metadata=False) |
ADF (dict, JSON text, a Confluence {"representation","value"} body, or a Node) → Markdown. |
convert(source, src, dst, profile) |
Either direction by name ("markdown", "adf"). |
validate(adf) / validation_issues(adf) |
Spec + JSON Schema validation. |
canonical(adf) |
Comparison form without server noise (localId, macro metadata, defaults). |
get_profile("jira" | "confluence" | "generic") |
Profiles; profile.with_mentions(resolver) resolves @Name mentions. |
Development
uv sync
uv run poe check # format, lint, types, tests with coverage
uv run poe test-deep # 2000 random documents per property
uv run python scripts/generate_spec.py # after updating src/adflux/adf/schema/full.json
uv run python scripts/build_profile_data.py
tests/fixtures/live holds ADF captured from live Jira and Confluence sites (every node
type as stored by each product, every Confluence macro, Jira wiki conversions). The e2e
suite (poe test-e2e, needs .env) creates real pages and issues and requires the
products to store adflux output unchanged. See CONTRIBUTING and
testing.
Releasing
Releases are automatic: release-please turns Conventional Commits on main into a release
pull request, and merging it tags, builds, attests, and publishes to PyPI. See
releasing.
License
MIT
Metadata
Release files for adflux 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| adflux-0.4.0.tar.gz | 179.1 kB | With provenance | Details for adflux-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| adflux-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for adflux-0.4.0-py3-none-any.whl |
Total release size: 275.9 kB
Release files / adflux-0.4.0.tar.gz
| Download URL | adflux-0.4.0.tar.gz |
|---|---|
| Size | 179.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
77ef9c7920f5afdcc5ec2b71a3dc8b91255ca704fb6b45899daac8f29711cf4a
|
|
BLAKE2b-256 checksum How to use checksums |
51a709a6951bb0f9924e10eb5f8728e840ba47dd8e284ec0b541abe015c7fe6e
|
| 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 Nov 21, 2026.
Transparency logRelease files / adflux-0.4.0-py3-none-any.whl
| Download URL | adflux-0.4.0-py3-none-any.whl |
|---|---|
| Size | 96.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0ce01eb4dabbd86d2b1609bacd3ea62ed4eff55c9a36afdb980166d14296f297
|
|
BLAKE2b-256 checksum How to use checksums |
47baee7ae8a00086eaeb0cda0189f11869c7216271cebd2b678f9f4255ac2542
|
| 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 Nov 21, 2026.
Transparency logSecurity for adflux 0.4.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for adflux-0.4.0.tar.gz
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 Nov 21, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.