---
myst:
  html_meta:
    "description": "Background on the design of pygments-beancount."
    "keywords": "Beancount, Pygments, lexer, design"
---

# Explanation

{doc}`design`
:   How the lexer follows Beancount's own scanner, where it is more permissive, and why it never reports an error.

{doc}`prior-art`
:   The older lexer, and why this package does not build on it.

```{toctree}
:hidden:

design
prior-art
```
