# Note types

The note type is defined by the `type` column in notes.

Possible types:

Note Type | `type` value | Corresponding MIME type | Content of the note's blob | Relevant attributes
--- | --- | --- | --- | ---
Text | `text` |  | The HTML of the note. |

Relation Map

`relationMap`

`application/json`

A JSON describing the note:

    {
        "notes": [
            {
                "noteId": "gFQDL11KEm9G",
                "x": 142,
                "y": 405
            },
            {
                "noteId": "8GcjEKyrrCgl",
                "x": 100.10406374385552,
                "y": 757.0364424520196
            }
        ],
        "transform": {
            "scale": 0.3,
            "x": 480.29766098682165,
            "y": 116.83892021963081
        }
    }

None

Render Note | `render` | `text/html` or blank. | An empty blob. | `~renderNote` pointing to the HTML note to render.

Canvas

`canvas`

`application/json`

    {
    	"appState": {},
    	"elemenets": {},
    	"files": {},
    	"type": "excalidraw",
    	"version": 2
    }

None

Mermaid Diagram | `mermaid` | `text/mermaid` or `text/plain` | The plain text content of the Mermaid diagram. | None

Book

`book`

`text/html` or blank.

An empty blob.

- `#viewType` which can be either `grid` or `list`.
- `#expanded`

both options are shown to the user via the “Book Properties” ribbon widget.

Web View | `webView` | blank | An empty blob. | `#webViewSrc` pointing to an URL to render.
Code | `code` | Depends on the language (e.g. `text/plain`, `text/x-markdown`, `text/x-c++src`). | The plain text content. |