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

# Markdown

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

<figure><img src="https://4217681718-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2FMbo91kXRJGPsIzXxsgpU%2Fmarkdown%402x.png?alt=media&amp;token=9d812c93-81df-4bca-a053-baa88d83f572" 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記法  | 結果        |
| -------- | ----------- | --------- |
| 太字       | `**太字**`    | **太字**    |
| 斜体       | `_斜体_`      | *斜体*      |
| 取り消し線    | `~取り消し線~`   | ~~取り消し線~~ |
| インラインコード | `` `コード` `` | `コード`     |

### 改行

押します `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: `# 第1レベルのタイトル`
* 見出し 2: `## 第2レベルのタイトル`
* 見出し 3: `### 第3レベルのタイトル`

### コードブロック

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

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

使用しています [Prism](https://github.com/PrismJS/prism) 構文ハイライトに。〜を使用してください [Test Drive 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.
