Features

Introduction

CodiMD 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 Gitter for dev-talk and interactive help.
Thank you very much!

Workspace

Modes

Desktop & Tablet

Edit: See only the editor.
View: See only the result.
Both: See both in split view.

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 CodiMD.

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 camera 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 local filesystem, 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 publish button and copy the URL.

Save a Note:

Currently, you can save to Dropbox or save an .md file locally.

Import Notes:

Similarly to the save feature, you can also import an .md file from Dropbox ,
or import content from your clipboard , and that can parse some html which might be useful :smiley:

Permissions:

It is possible to change the access permission to 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.

Embed a Note:

Notes can be embedded as follows:

<iframe width="100%" height="500" src="https://hackmd.io/features"></iframe>

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

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 five header levels, the default is set to three. The maxLevel can be set for each note by using
YAML Metadata

Permalink

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:

  • sublime (default)
  • emacs
  • vim

Shortcut Keys:

The shortcut keys depend on your selected editor mode. By default they are just like Sublime text, which is pretty quick and convenient.

For more information, see here.

For emacs:

For more information, see here.

For vim:

For more information, see here.

Auto-Complete:

This editor provides full auto-complete hints in markdown.

  • Emojis: type : to show hints.
  • Code blocks: type ``` and plus a character to show hint. ```
  • Headers: type # to show hint.
  • Referrals: type [] to show hint.
  • Externals: type {} to show hint.
  • Images: type ! to show hint.

Title:

This will take the first level 1 header as the note title.

Tags:

Using tags as follows, the specified 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):

  • robots: set web robots meta
  • lang: set browser language
  • dir: set text direction
  • breaks: set to use line breaks
  • GA: set to use Google Analytics
  • disqus: set to use Disqus
  • slideOptions: setup slide mode options
  • toc: set options of the Table of Contents.

ToC:

Use the syntax [TOC] to embed table of content into your note. By default, three header levels are displayed. This can also be specified by using YAML Metadata.

You can also specify the number of header levels by specifying the maxLevel like this: [TOC maxLevel=1]

Emoji

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

See full emoji list here.

ToDo List:

  • ToDos
    • Buy some salad
    • Brush teeth
    • Drink some water

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 the nest blockquotes!
ChengHan Wu Sun, Jun 28, 2015 10:00 PM

Render CSV as table

You can use write csv in the codeblock:

```csvpreview {header="true"}
firstName,lastName,email,phoneNumber
John,Doe,john@doe.com,0123456789
Jane,Doe,jane@doe.com,9876543210
James,Bond,james.bond@mi6.co.uk,0612345678
```

which rendered to:

firstNamelastNameemailphoneNumber
JohnDoejohn@doe.com0123456789
JaneDoejane@doe.com9876543210
JamesBondjames.bond@mi6.co.uk0612345678

We use Papa Parse for parsing csv. The parsing option is given in braces: {}, and multiple options are seperated by a space. e.g. {header="true" delimiter="."}. Please read their documentation as reference.

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.

MathJax

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

The Gamma function satisfying Γ(n)=(n1)!nN is via the Euler integral

x=b±b24ac2a.

Γ(z)=0tz1etdt.

More information about LaTeX mathematical expressions here.

UML Diagrams

Sequence Diagrams

You can render sequence diagrams like this:

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

Flow Charts

Flow charts can be specified like this:

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

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





Mermaid

2014-01-052014-01-122014-01-192014-01-262014-02-022014-02-092014-02-16A task           Task in sec      anther task      Another task     SectionAnotherA Gantt Diagram

PlantUML

Vega-Lite

0100200300400500Sum of yieldGlabronManchuriaNo. 457No. 462No. 475PeatlandSvansotaTrebiVelvetWisconsin No. 38varietyCrookstonDuluthGrand RapidsMorrisUniversity FarmWasecasite

Mindmap

multiline text
inline text styles
links
Features
Related
Links
markmap-lib

More information about sequence diagrams syntax here.
More information about flow charts syntax here.
More information about graphviz syntax here
More information about mermaid syntax here
More information about abc syntax here
More information about plantuml syntax here
More information about vega syntax here
More information about fretboard syntax here

Alert Area

Yes :tada:

This is a message :mega:

Watch out :zap:

Oh No! :fire:

Click to show details

You found me :stuck_out_tongue_winking_eye:

Music

Abc

Created with Raphaël 2.1.2Speed the PloughTrad.

Fretboard

horizontal, 6 frets, with nut
Rectangle Created with Sketch.

Typography

Headers

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

Horizontal Rules


Features Introduction CodiMD 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 Gitter for dev-talk and interactive help. Thank you very much! Workspace Modes Desktop & Tablet Edit: See only the editor. View: See only the result. Both: See both in split view. 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 CodiMD. 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 camera 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 local filesystem, nothing to worry about. 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 publish button and copy the URL. Save a Note: Currently, you can save to Dropbox or save an .md file locally. Import Notes: Similarly to the save feature, you can also import an .md file from Dropbox , or import content from your clipboard , and that can parse some html which might be useful Permissions: It is possible to change the access permission to 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. Embed a Note: Notes can be embedded as follows: <iframe width="100%" height="500" src="https://hackmd.io/features"></iframe> 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 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 five header levels, the default is set to three. The maxLevel can be set for each note by using YAML Metadata Permalink 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: sublime (default) emacs vim Shortcut Keys: The shortcut keys depend on your selected editor mode. By default they are just like Sublime text, which is pretty quick and convenient. For more information, see here. For emacs: For more information, see here. For vim: For more information, see here. Auto-Complete: This editor provides full auto-complete hints in markdown. Emojis: type : to show hints. Code blocks: type ``` and plus a character to show hint. ``` Headers: type # to show hint. Referrals: type [] to show hint. Externals: type {} to show hint. Images: type ! to show hint. Title: This will take the first level 1 header as the note title. Tags: Using tags as follows, the specified 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): robots: set web robots meta lang: set browser language dir: set text direction breaks: set to use line breaks GA: set to use Google Analytics disqus: set to use Disqus slideOptions: setup slide mode options toc: set options of the Table of Contents. ToC: Use the syntax [TOC] to embed table of content into your note. By default, three header levels are displayed. This can also be specified by using YAML Metadata. You can also specify the number of header levels by specifying the maxLevel like this: [TOC maxLevel=1] Emoji You can type any emoji like this See full emoji list here. ToDo List: [ ] ToDos [x] Buy some salad [ ] Brush teeth [x] Drink some water 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. [name=ChengHan Wu] [time=Sun, Jun 28, 2015 9:59 PM] [color=#907bf7] Even support the nest blockquotes! [name=ChengHan Wu] [time=Sun, Jun 28, 2015 10:00 PM] [color=red] Render CSV as table You can use write csv in the codeblock: ```csvpreview {header="true"} firstName,lastName,email,phoneNumber John,Doe,john@doe.com,0123456789 Jane,Doe,jane@doe.com,9876543210 James,Bond,james.bond@mi6.co.uk,0612345678 ``` which rendered to: firstNamelastNameemailphoneNumber JohnDoejohn@doe.com0123456789 JaneDoejane@doe.com9876543210 JamesBondjames.bond@mi6.co.uk0612345678 We use Papa Parse for parsing csv. The parsing option is given in braces: {}, and multiple options are seperated by a space. e.g. {header="true" delimiter="."}. Please read their documentation as reference. Externals YouTube Vimeo Gist SlideShare PDF Caution: this might be blocked by your browser if not using an https URL. MathJax You can render LaTeX mathematical expressions using MathJax, as on math.stackexchange.com: The Gamma function satisfying \(\Gamma(n) = (n-1)!\quad\forall n\in\mathbb N\) is via the Euler integral \[ x = {-b \pm \sqrt{b^2-4ac} \over 2a}. \] \[ \Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt\,. \] More information about LaTeX mathematical expressions here. UML Diagrams Sequence Diagrams You can render sequence diagrams like this: Alice->Bob: Hello Bob, how are you? Note right of Bob: Bob thinks Bob-->Alice: I am good thanks! Note left of Alice: Alice responds Alice->Bob: Where have you been? Flow Charts Flow charts can be specified like this: st=>start: Start e=>end: End op=>operation: My Operation op2=>operation: lalala cond=>condition: Yes or No? st->op->op2->cond cond(yes)->e cond(no)->op2 Graphviz digraph hierarchy { nodesep=1.0 // increases the separation between nodes node [color=Red,fontname=Courier,shape=box] //All nodes will this shape and colour edge [color=Blue, style=dashed] //All the lines look like this Headteacher->{Deputy1 Deputy2 BusinessManager} Deputy1->{Teacher1 Teacher2} BusinessManager->ITManager {rank=same;ITManager Teacher1 Teacher2} // Put them on the same level } Mermaid gantt title A Gantt Diagram section Section A task :a1, 2014-01-01, 30d Another task :after a1 , 20d section Another Task in sec :2014-01-12 , 12d anther task : 24d PlantUML Vega-Lite { "$schema": "https://vega.github.io/schema/vega-lite/v4.json", "data": {"url": "https://vega.github.io/editor/data/barley.json"}, "mark": "bar", "encoding": { "x": {"aggregate": "sum", "field": "yield", "type": "quantitative"}, "y": {"field": "variety", "type": "nominal"}, "color": {"field": "site", "type": "nominal"} } } Mindmap # markmap-lib ## Links - <https://markmap.js.org/> - [GitHub](https://github.com/gera2ld/markmap-lib) ## Related - [coc-markmap](https://github.com/gera2ld/coc-markmap) - [gatsby-remark-markmap](https://github.com/gera2ld/gatsby-remark-markmap) ## Features - links - **inline** ~~text~~ *styles* - multiline text More information about sequence diagrams syntax here. More information about flow charts syntax here. More information about graphviz syntax here More information about mermaid syntax here More information about abc syntax here More information about plantuml syntax here More information about vega syntax here More information about fretboard syntax here Alert Area Yes This is a message Watch out Oh No! Click to show details You found me Music Abc X:1 T:Speed the Plough M:4/4 C:Trad. K:G |:GABc dedB|dedB dedB|c2ec B2dB|c2A2 A2BA| GABc dedB|dedB dedB|c2ec B2dB|A2F2 G4:| |:g2gf gdBd|g2f2 e2d2|c2ec B2dB|c2A2 A2df| g2gf g2Bd|g2f2 e2d2|c2ec B2dB|A2F2 G4:| Fretboard -oO-*- --o-o- -o-oo- -o-oO- -oo-o- -*O-o- 3 Typography Headers # h1 Heading ## h2 Heading ### h3 Heading #### h4 Heading ##### h5 Heading ###### h6 Heading Horizontal Rules
{}