> For the complete documentation index, see [llms.txt](https://gitbook.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.com/docs/documentation/ja-gitbook-documentation/kontentsuwosuru/formatting/markdown.md). Agents can also search and read this documentation through its [MCP server](https://gitbook.com/docs/~gitbook/mcp).

# Markdown

エディタで直接 Markdown を記述して、一般的な構文を使って簡単にコンテンツを作成できます

<figure><img src="https://4217681718-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2Fgit-blob-aa91bb0ac767b11589b7b056d45137345e351c34%2F25_12_10_markdown%402x.png?alt=media" alt="An image containing the markdown logo"><figcaption><p>GitBook で Markdown を書く。</p></figcaption></figure>

GitBook のエディタでは、Markdown を使って書式付きコンテンツを作成できます。

Markdown は、そのシンプルさで広く知られている人気のマークアップ構文です。GitBook では、リッチで構造化されたテキストをキーボード操作で書く方法としてこれをサポートしています。

{% hint style="info" %}
Markdown自体について詳しくは、 [CommonMark](https://commonmark.org/help/).
{% endhint %}

### テキストの書式設定 <a href="#text-formatting" id="text-formatting"></a>

GitBook は、従来のインライン Markdown 書式をすべてサポートしています:

| 書式       | Markdown 版        | 結果        |
| -------- | ----------------- | --------- |
| ボールド     | `**bold**`        | **ボールド**  |
| 斜体       | `_italic_`        | *斜体*      |
| 取り消し線    | `~strikethrough~` | ~~取り消し線~~ |
| インラインコード | `` `code` ``      | `コード`     |

### 改行

押す `Enter` と、新しい段落が始まります。

押す `Shift` + `Enter` と、同じ段落内にソフト改行が挿入されます。

### Markdown の貼り付け

Markdownコンテンツをエディターに直接貼り付ける場合は、 **書式を合わせてペースト** オプション（通常は <kbd>Shift</kbd> + <kbd>Cmd</kbd> + <kbd>V</kbd> （Mac）または <kbd>Shift</kbd> + <kbd>Ctrl</kbd> + <kbd>V</kbd> （Windows））を使用することが重要です。

別のエディタや Web からコピーしたコンテンツに標準の「貼り付け」オプションを使用すると、書式付きテキストではなくコードブロックとして挿入される場合があります。

### タイトル

* 見出し1： `# A first-level title`
* 見出し2： `## A second-level title`
* 見出し3： `### A third-level title`

### コードブロック

` ```⏎ ` 新しいコードブロックを作成します。

` ```py⏎ ` Pythonの構文ハイライト付きの新しいコードブロックを作成します。

構文ハイライトには [Prism](https://github.com/PrismJS/prism) を使用します。対応言語を確認するには、 [Prismを試す](https://prismjs.com/test.html#language=markup) をご利用ください。

GitBook と Prism に違いがある場合、私たちの方が 1〜2 バージョン古い可能性があります。

### リスト

GitBook は、入力に応じて順序付きリストと順序なしリストを自動的に検出して作成します。

* 行の先頭に `-` または `*` を入力すると、順序なしの箇条書きリストが始まります。
* 行の先頭に `1.` を入力すると、番号付きリストが始まります。
* 行の先頭に `- [ ]` を入力すると、タスクリストが始まります。

リストを作成するときは、 `Tab` を押すとインデントし、 `Shift+Tab` を押すとインデントを解除できます。

### 引用

行の先頭に `>` 引用ブロックを作成します。段落全体を先頭から末尾まで選択して入力すると、 `>` 選択した内容が引用ブロックで囲まれます。

> これはブロック引用です。

### 区切り線

入力して `---` その後、 `Enter` キーを押すと、ページに区切り線が作成されます。

***

これは区切り線の例です。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://gitbook.com/docs/documentation/ja-gitbook-documentation/kontentsuwosuru/formatting/markdown.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
