a year ago 111 views

Features

Introduction

HedgeDoc is a real-time, multi-platform collaborative markdown note editor.
This means that you can write notes with other people on your desktop, tablet or even on the phone.
You can sign-in via multiple auth providers like Facebook, Twitter, GitHub and many more on the homepage.

If you experience any issues, feel free to report it on GitHub.
Or meet us on Matrix for dev-talk and interactive help.
Thank you very much!

Workspace

Modes

Desktop & Tablet

View: See only the result.
Both: See editor and result at the same time.
Edit: See only the editor.

Mobile

View: See only the result.
Edit: See only the editor.

Night Mode

When you are tired of a white screen and like a night mode, click on the little moon and turn on the night view of HedgeDoc.

The editor view, which is in night mode by default, can also be toggled between night and day view using the the little sun.

Image Upload

You can upload an image simply by clicking on the upload button .
Alternatively, you can drag-n-drop an image into the editor. Even pasting images is possible!
This will automatically upload the image to imgur, Amazon S3, Minio or the local filesystem (depending on the instance’s configuration), nothing to worry about. :tada:

imgur

Share Notes

If you want to share an editable note, just copy the URL.
If you want to share a read-only note, simply press the publish button and copy the URL.

Save a Note

Currently, you can save to Dropbox (depending on the instance’s configuration) or save a Markdown , HTML or raw HTML file locally.

Import Notes

Similarly to the save feature, you can also import a Markdown file from Dropbox (depending on the instance’s configuration), or import content from your clipboard , which can parse some HTML. :smiley:

Permissions

It is possible to change the access permission of a note through the little button on the top right of the view.
There are four possible options:

Owner read/write Signed-in read Signed-in write Guest read Guest write
Freely
Editable
Limited
Locked
Protected
Private

Only the owner of the note can change the note’s permissions.

Slide Mode

You can use a special syntax to organize your note into slides.
After that, you can use the Slide Mode to make a presentation.
Visit the above link for details.

To switch the editor into slide mode, set the document type to slide.

View

Autogenerated Table of Contents

You can look at the bottom right section of the view area, there is a ToC button .
Pressing that button will show you a current Table of Contents, and will highlight which section you’re at.
ToCs support up to three header levels.

Every header will automatically add a permalink on the right side.
You can hover and click to anchor on it.

Edit

Editor Modes

You can look in the bottom right section of the editor area, there you’ll find a button with SUBLIME on it.
When you click it, you can select 3 editor modes, which will also define your shortcut keys:

Auto-Complete

This editor provides full auto-complete hints in markdown.

Title

The first level 1 heading (e.g. # Title) will be used as the note title.

Tags

Tags can be specified with YAML metadata at the start of the note. Those tags will show in your history.

---
tags: features, cool, updated
---

YAML Metadata

You can provide advanced note information to set the browser behavior (visit above link for details):

Table of Contents

Use the syntax [TOC] to embed a table of contents into your note.

Emoji

You can type any emoji like this :smile: :smiley: :cry: :wink:

See full emoji list here.

ToDo List

Code Block

We support many programming languages, use the auto complete function to see the entire list.

var s = "JavaScript syntax highlighting"; alert(s); function $initHighlight(block, cls) { try { if (cls.search(/\bno\-highlight\b/) != -1) return process(block, true, 0x0F) + ' class=""'; } catch (e) { /* handle exception */ } for (var i = 0 / 2; i < classes.length; i++) { if (checkCondition(classes[i]) === undefined) return /\d+[\s/]/g; } }

If you want line numbers, type = after specifying the code block languagues.
Also, you can specify the start line number.
Like below, the line number starts from 101:

var s = "JavaScript syntax highlighting"; alert(s); function $initHighlight(block, cls) { try { if (cls.search(/\bno\-highlight\b/) != -1) return process(block, true, 0x0F) + ' class=""'; } catch (e) { /* handle exception */ } for (var i = 0 / 2; i < classes.length; i++) { if (checkCondition(classes[i]) === undefined) return /\d+[\s/]/g; } }

Or you might want to continue the previous code block’s line number, use =+:

var s = "JavaScript syntax highlighting"; alert(s);

Somtimes you have a super long text without breaks. It’s time to use ! to wrap your code:

When you’re a carpenter making a beautiful chest of drawers, you’re not going to use a piece of plywood on the back.

Blockquote Tags

Using the syntax below to specifiy your name, time and color to vary the blockquotes.
ChengHan Wu Sun, Jun 28, 2015 9:59 PM

Even support nested blockquotes!
Max Mustermann Sun, Jun 28, 2015 9:47 PM

Externals

YouTube

Vimeo

Gist

require 'net/http'
require 'uri'
# /api/v1/:format/new
# /api/v1/:format/gists/:user
# /api/v1/:format/:gist_id
res = Net::HTTP.post_form(URI.parse('http://gist.github.com/api/v1/xml/new'),
{ 'files[file1.ab]' => 'CONTNETS',
'files[file2.ab]' => 'contents' })
puts res.body
<?xml version="1.0" encoding="UTF-8"?>
<gists type="array">
<gist>
<public type="boolean">true</public>
<description nil="true"></description>
<repo>4278</repo>
<created-at type="datetime">2008-08-06T13:30:32-07:00</created-at>
</gist>
</gists>
view raw output.xml hosted with ❤ by GitHub

SlideShare

PDF

Caution: this might be blocked by your browser if not using an https URL.
Note that not all servers allow embedding their content. See our FAQ for details.

MathJax

You can render LaTeX mathematical expressions using MathJax,
as on math.stackexchange.com. Examples:

More information about LaTeX mathematical expressions here.

Diagrams

UML Sequence Diagrams

You can render sequence diagrams like this:

Created with Raphaël 2.3.0AliceAliceBobBobHello Bob, how are you?Bob thinksI am good thanks!Alice respondsWhere have you been?

More information about sequence diagrams syntax here.

Flow Charts

Flow charts can be specified like this:

Created with Raphaël 2.3.0StartMy OperationlalalaYes or No?Endyesno

More information about flow charts syntax here.

Graphviz







hierarchy



Headteacher

Headteacher



Deputy1

Deputy1



Headteacher->Deputy1





Deputy2

Deputy2



Headteacher->Deputy2





BusinessManager

BusinessManager



Headteacher->BusinessManager





Teacher1

Teacher1



Deputy1->Teacher1





Teacher2

Teacher2



Deputy1->Teacher2





ITManager

ITManager



BusinessManager->ITManager





More information about graphviz syntax here

Mermaid

A Gantt Diagram2014-01-052014-01-122014-01-192014-01-262014-02-022014-02-092014-02-16A taskTask in secAnother taskAnother taskSectionAnotherA Gantt Diagram

More information about mermaid syntax here

Abc Music Notation

Sheet Music for "Speed the Plough"Speed the PloughTrad.

More information about abc syntax here

Alert Area

Yes :tada:

This is a message :mega:

Watch out :zap:

Oh No! :fire:

Typography

Headers

# h1 Heading
## h2 Heading
### h3 Heading
#### h4 Heading
##### h5 Heading
###### h6 Heading

Horizontal Rules




Typographic Replacements

© © ® ® ™ ™ (p) (P) ±

test… test… test… test… test?.. test!..

!!! ??? ,

Remarkable—no, awesome!

During 1980–1988.

“Smartypants, double quotes”

‘Smartypants, single quotes’

Emphasis

This is bold text

This is bold text

This is italic text

This is italic text

Deleted text

lulala

Superscript: 19th

Subscript: H2O

Inserted text

Marked text

Blockquotes

Blockquotes can also be nested…

…by using additional greater-than signs right next to each other…

…or with spaces between arrows.

Lists

Unordered
Ordered
  1. Lorem ipsum dolor sit amet

  2. Consectetur adipiscing elit

  3. Aenean commodo ligula eget dolor

  4. You can use sequential numbers…

  5. …or keep all the numbers as 1.

  6. Aenean massa

  7. Cum sociis natoque penatibus

  8. Magnis dis parturient montes

  9. Nascetur ridiculus mus

  10. Donec quam felis

Start numbering with offset:

  1. foo
  2. bar

Code

Inline code

Indented code

// Some comments
line 1 of code
line 2 of code
line 3 of code

Block code “fences”

Sample text here...

Syntax highlighting

var foo = function (bar) {
  return bar++;
};

console.log(foo(5));

Tables

Option Description
data path to data files to supply the data that will be passed into templates.
engine engine to be used for processing templates. Handlebars is the default.
ext extension to be used for dest files.

Right aligned columns

Option Description
data path to data files to supply the data that will be passed into templates.
engine engine to be used for processing templates. Handlebars is the default.
ext extension to be used for dest files.

Left aligned columns

Option Description
data path to data files to supply the data that will be passed into templates.
engine engine to be used for processing templates. Handlebars is the default.
ext extension to be used for dest files.

Center aligned columns

Option Description
data path to data files to supply the data that will be passed into templates.
engine engine to be used for processing templates. Handlebars is the default.
ext extension to be used for dest files.

link text
link with title
Autoconverted link https://github.com/nodeca/pica

Images

Minion

With a title:
Stormtroopocat

Like links, images also have a footnote style syntax with a reference later in the document defining the URL location:
Dojocat

Show the image with given size:
Minion

Footnotes

Footnote 1 link[1].
Footnote 2 link[2].
Inline footnote[3] definition.
Duplicated footnote reference[2:1].

Definition Lists

Term 1

Definition 1
with lazy continuation.

Term 2 with inline markup

Definition 2

  { some code, part of Definition 2 }

Third paragraph of definition 2.

Compact style:

Term 1
Definition 1
Term 2
Definition 2a
Definition 2b

Abbreviations

This is an HTML abbreviation example.
It converts “HTML”, but keeps intact partial entries like “xxxHTMLyyy” and so on.

Revisions

When changes are made to a note previous versions of the note are stored as Revisions, if you ever need to return to a previous save you can find all the note revisions by going to Menu -> Revision.

The note history on the left displays each revision with a timestamp allowing you to quickly select a revision for the desired date and time. Selecting a revision on the left will display the revised note to the right, the revision will display the changes made with colorization to indicate additions/removals.

In addition to browsing the revisions, you can download a selected note revision or revert the current note to the selected revision.


  1. Footnote can have markup
    and multiple paragraphs. ↩︎

  2. Footnote text. ↩︎ ↩︎

  3. Text of inline footnote ↩︎