# Source: https://gitbook.com/docs/documentation/ja-gitbook-documentation/creating-content/blocks/drawing.md

# Source: https://gitbook.com/docs/documentation/zh/creating-content/blocks/drawing.md

# Source: https://gitbook.com/docs/documentation/fr/creating-content/blocks/drawing.md

# Source: https://gitbook.com/docs/creating-content/blocks/drawing.md

# Drawings

You can create a drawing or sketch directly though GitBook using the integrated [Excalidraw](https://excalidraw.com/) editor, then add it right into your GitBook page.

To create a drawing, press `/` on an empty line to bring up the insert palette and choose **Drawing**. This will open a popover with Excalidraw tools — simply close the popover when you’re done and your diagram will appear on your GitBook page.

GitBook stores drawings as special SVG files in the space. Those files have an extension of `drawing.svg`.

### Example of a drawing block

<img src="https://1050631731-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2FEU4IQ0zVbLLZ2o7ivizA%2Ffile.excalidraw.svg?alt=media&#x26;token=789b9484-cf49-41d7-88ac-61bb1480e85f" alt="A diagram drawn in GitBook" class="gitbook-drawing">

### Draw with GitBook AI

{% hint style="info" %}
This feature is available on [Pro and Enterprise plans](https://www.gitbook.com/pricing).
{% endhint %}

When using drawing block, you can ask GitBook AI to generate an illustration by specifying a prompt. Simply type in a prompt and hit **Generate**, or choose one of the suggested prompts to get started.

Once GitBook AI has finished the drawing, you can double-click to open the full drawing palette and edit it however you like.

When editing a drawing, click the **Use AI to generate** button to bring up GitBook AI’s prompt editor again and generate a new drawing.

### Representation in Markdown

```markdown
<img src="https://example.com/file.svg" alt="Example diagram description" class="gitbook-drawing">
```