Main features
- Real-time collaborative Markdown with live preview
- Mermaid, Graphviz, sequence diagrams, flowcharts and abc notation
- MathJax for LaTeX formulas
- Slide mode for presentations
- Six permission levels from Freely to Private
- Revision history with diff, download and revert
- Read-only published links
- LDAP, SAML, OAuth2, GitHub, GitLab and other logins
- Export to Markdown and HTML
What HedgeDoc does
HedgeDoc is a self-hosted editor for writing Markdown together in real time. The screen splits into the Markdown source and a live preview, or shows either one alone, and everyone with access edits the same note at once. It is a community fork of CodiMD, the open source counterpart of HackMD, renamed in 2020, and the docs describe migrating existing CodiMD and older HackMD installations.
The appeal is everything Markdown can carry in one note: code blocks with syntax highlighting, tables, task lists, LaTeX math through MathJax, and diagrams written as text in Mermaid, Graphviz, sequence-diagram or flowchart syntax, even sheet music in abc notation. Setting the note type to slide turns it into a presentation, so meeting notes, technical documentation and conference slides can live in the same tool.
Sharing and permissions
Each note has an owner and one of six permission levels:
| Level | Guests | Signed-in users |
|---|---|---|
| Freely | read and write | read and write |
| Editable | read | read and write |
| Limited | none | read and write |
| Locked | read | read |
| Protected | none | read |
| Private | none | none |
Only the owner can change the level. A “publish” button creates a read-only view link. Revisions are stored as you work, and the revision view shows the changes between versions in color, lets you download any revision and revert to it.
Sign-in options
HedgeDoc supports local accounts, which an admin can turn off, and LDAP or Active Directory, SAML (with Keycloak and OneLogin examples), generic OAuth2, GitHub, GitLab, Keycloak, Mattermost, Nextcloud, Microsoft Entra ID and Authelia. Uploaded images can be stored on S3, MinIO or Google Cloud Storage.
Self-hosting HedgeDoc
Install it with the official Docker image or from a release tarball. The manual setup needs Node.js 20.17 or later (22, 24 and 26 are listed, latest LTS recommended), Yarn 4 through corepack, and PostgreSQL, MySQL, MariaDB or SQLite with UTF-8 encoding. Release tarballs include the prebuilt frontend, so the 2 GB of RAM mentioned in the docs is only needed if you build it yourself.
Version 1.x and HedgeDoc 2
The project is in a transition. HedgeDoc 1.x is the stable, widely used version, but the README says it is maintenance-only. The team no longer accepts feature requests or pull requests for it and may close non-critical bugs that won’t exist in 2.0. HedgeDoc 2 is a complete rewrite with separate backend and frontend in the same repository. An alpha demo is public, but it does not yet have every feature. On the releases page, 1.12.0 is the current release, and versions 1.12.1 and 1.12.2 from November were marked as withdrawn. Check the release notes before you upgrade.
Limitations
- Markdown only: no DOCX or ODT import or export, and no page layout.
- No inline comments or suggestion mode.
- The 1.x line gets fixes only, and 2.0 is not finished.
- Not suitable for people who do not want to write Markdown.
Who it suits
HedgeDoc suits developer teams, hackathons, research groups and open source communities that already think in Markdown and want shared notes with diagrams, math and slides on their own server. For collaborative writing aimed at non-technical users, Etherpad or La Suite Docs are easier. For full office documents, see the office suites guide.
License details
AGPL-3.0. The HedgeDoc logo is not covered by the AGPL; its terms are in the hedgedoc-logo repository.
Technical details
Self-hosting needs
- PostgreSQL
- MySQL
- MariaDB or SQLite
Built with
- JavaScript
- TypeScript
- Node.js
GitHub topics
- codimd
- collaboration
- diagrams
- editor
- hackmd
- hacktoberfest
- hedgedoc
- markdown
- notes
- real-time
Reviewed by the OpenSourcePicks editors from the project's repository and documentation. Something out of date? Tell us.