Erik Michelson 77a59c3a26 fix(renderer): allow opening browser popups from sandbox for pdfs
Apparently, opening a link from a sandboxed iframe enabled the
sandbox mode for the opened new tab as well. For most pages,
this is not a problem since these pages don't depend on anything
special. However when clicking a link to a PDF file, Chromium-
based browsers don't open the tab, since the built-in PDF viewer
is not compatible with the sandboxing.
The attribute `allow-popups-to-escape-sandbox` allows pages opened
from the sandbox into a new tab to be not sandboxed. Since we don't
have opener access there, this is no risk to HedgeDoc and can safely
be enabled and therefore fix PDF links.

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2026-07-19 13:31:28 +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%