Erik Michelson cad31957c3 fix(revisions): use correct cleanup algorithm
Previously, the cleanup algorithm let to data-loss as it could
delete the only remaining revision of a note when it was older
than the retention period. The new cleanup algorithm strictly
differentiates between cases where only one revision exists at
all, where multiple revisions exists older than the retention
period but no newer one (compacting them properly) as well as
where both revisions older than the retention period and ones
newer than that period exist (cleaning up the old ones).
This should prevent data loss by clean ups.

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2026-07-15 10:15:40 +02:00
2025-12-17 21:48:09 +01:00
2025-08-14 13:45:06 +00:00
2023-02-07 21:38:40 +01:00
2022-12-01 23:51:51 +01:00
2023-10-08 21:57:01 +02:00
2026-03-04 00:21:52 +01:00
2023-10-08 21:57:01 +02:00
2023-07-11 21:17:19 +02:00

Hedgedoc Logo

#HedgeDoc on matrix.org version POEditor Mastodon REUSE Compliance Check codecov

HedgeDoc lets you create real-time collaborative markdown notes.

Getting Started

State of the project

HedgeDoc 1.x is stable and used around the world, but the codebase has grown over time, making it hard to add new features.
We are currently working on HedgeDoc 2, a complete rewrite of HedgeDoc. Please note the following:

  • This branch contains the latest development code and does not implement all features yet. If you are looking for the 1.x source code, have a look at the master branch.
  • The 1.x release is maintenance-only. We do not accept feature requests or PRs for this release anymore and may choose to close non-critical bug reports, if the bug will be non-existent in 2.0.
  • HedgeDoc 2 will be split in two components. The backend and the frontend. Both are present in this repository.

Development

Information for setting up a local development environment can be found in the developer documentation

HedgeDoc 2 Alpha

Curious about the new look and feel of HedgeDoc 2? We provide a demo of the alpha on hedgedoc.dev.

If you want to try it out on your own devices, visit the HedgeDoc 2 docs. But be aware that these may change over time.

Contributions

We welcome contributions!
Have a look at our contribution docs to find out how you can help. If you want to contribute to HedgeDoc 2, please join our development chat.

License

Licensed under AGPLv3. For our list of contributors, see AUTHORS.

The license does not include the HedgeDoc logo, whose terms of usage can be found in the github repository.

Languages
TypeScript 96%
SCSS 3%
JavaScript 0.7%
Dockerfile 0.1%
Shell 0.1%