Skip to main content

minchin.md-it.beancount

A Markdown-It-Py plugin that renders beancount (or bean) fenced blocks as checkbook-style registers. It serve as the Pelican-side counterpart of the Obsidian plugin beancount-register, and it renders the same layout and class names, but depends on neither Pelican or Obsidian.

```beancount
2024-09-26 * "Airbnb Payments" "Paris Trip" #ParisTrip
  Liabilities:CreditCard:MyBank                    -200 EUR
  Expenses:Travel:Accomodation
```

Use with Pelican

Add the plugin to the CommonMark reader’s extensions in your pelicanconf.py:

# pelicanconf.py

import minchin.md_it.beancount

COMMONMARK["extensions"].append(minchin.md_it.beancount.beancount_plugin)

Add the stylesheet rules from css/beancount-register.css to your theme.

How it Works

  • Each entry is parsed with the official beancount package. Missing amounts are filled in by Beancount’s own booking step, so one posting with no amount is the negative of the others.

  • A register is drawn for each account the transactions share. Ties go to Assets or Liabilities. The title bar shows the account and, when the amounts share one currency, the currency.

  • Negative amounts are shown as Debit and positive amounts as Credit, following the bank-statement convention.

  • Entries that do not parse are listed under “Not shown in the register”, and the rest of the block still renders.

Limits

  • The Balance column is present but empty.

  • Beancount directives other than transactions (open, balance, …) are not drawn.

Other Options

Licence

MIT. See LICENSE.txt.

Metadata

Release files for minchin.md-it.beancount 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for minchin.md-it.beancount 1.0.1
File Size Uploaded Provenance Actions
minchin_md_it_beancount-1.0.1.tar.gz 15.6 kB Without provenance Details for minchin_md_it_beancount-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for minchin.md-it.beancount 1.0.1
File Interpreter ABI Platform Actions
minchin_md_it_beancount-1.0.1-py3-none-any.whl Python 3 none any Details for minchin_md_it_beancount-1.0.1-py3-none-any.whl

Total release size: 30.4 kB

Release files / minchin_md_it_beancount-1.0.1.tar.gz

Download URL minchin_md_it_beancount-1.0.1.tar.gz
Size 15.6 kB
Tags Source
SHA-256 checksum
How to use checksums
efd0ad832c0a427b2cbb9e3035a62888f0188fd05571d7acf97e5068651a8483
BLAKE2b-256 checksum
How to use checksums
b24ea48446971c8ded038347980a1cf9b1c4c8d5c1ba2af3a3d16c96ac0d0f41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.18

Release files / minchin_md_it_beancount-1.0.1-py3-none-any.whl

Download URL minchin_md_it_beancount-1.0.1-py3-none-any.whl
Size 14.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
97cf3c4af2e86b774f61d1be5f77e75ecfef4f41942dc415256e91a6be9f8d6a
BLAKE2b-256 checksum
How to use checksums
1b5a784779f5f56e45246388746553002c1f7552c7be1421134ef8ee349d3e77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.18

Security for minchin.md-it.beancount 1.0.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page