---
title: "マークダウンサンプル"
pubDate: 2023-01-01T00:00:00+09:00
tags: ["markdown"]
published: true
---

## 見出し

### syntax
```markdown
# header1ヘッダー1

## header2ヘッダー2

### header3ヘッダー3

#### header4ヘッダー4

##### header5ヘッダー5

###### header6ヘッダー6
```

### output

# header1ヘッダー1

## header2ヘッダー2

### header3ヘッダー3

#### header4ヘッダー4

##### header5ヘッダー5

###### header6ヘッダー6

## 文字

吾輩は猫である。名前はまだ無い。どこで生れたかとんと見当がつかぬ。何でも薄暗いじめじめした所でニャーニャー泣いていた事だけは記憶している。吾輩はここで始めて人間というものを見た。しかもあとで聞くとそれは書生という人間中で一番獰悪な種族であったそうだ。この書生というのは時々我々を捕えて煮て食うという話である。しかしその当時は何という考もなかったから別段恐しいとも思わなかった。ただ彼の掌に載せられてスーと持ち上げられた時何だかフワフワした感じがあったばかりである。掌の上で少し落ちついて書生の顔を見たのがいわゆる人間というものの見始であろう。この時妙なものだと思った感じが今でも残っている。第一毛をもって装飾されべきはずの顔がつるつるしてまるで薬缶だ。その後猫にもだいぶ逢ったがこんな片輪には一度も出会わした事がない。のみならず顔の真中があまりに突起している。そうしてその穴の中から時々ぷうぷうと煙を

## リンク

### syntax

```markdown
https://wagomu.me/

[輪ごむの空き箱](https://wagomu.me/)

[輪ごむの空き箱](https://wagomu.me/ "輪ごむの空き箱")
```

### output

https://wagomu.me/

[輪ごむの空き箱](https://wagomu.me/)

[輪ごむの空き箱](https://wagomu.me/ "輪ごむの空き箱")

## リスト

### 箇条書き

### syntax

```markdown
- list1リスト1
- list2リスト2
	- ネストしたlist2-1リスト2-1
	- ネストしたlist2-2リスト2-2
- list3リスト3
```

### output

- list1リスト1
- list2リスト2
	- ネストしたlist2-1リスト2-1
	- ネストしたlist2-2リスト2-2
- list3リスト3

### 番号付きリスト

### syntax

```markdown
1. 番号付きlist1
2. 番号付きlist2
	1. ネストした番号付きlist2-1
	2. ネストした番号付きlist2-2
```

### output

1. 番号付きlist1
2. 番号付きlist2
	1. ネストした番号付きlist2-1
	2. ネストした番号付きlist2-2

## 引用

### syntax
```markdown
> 引用文 inyo
> ですよー
````

### output

> 引用文 inyo
> ですよー

## 引用文のネスト

### syntax

```markdown
> 引用がネストされることもあります。
>
> > inyo no nest
> >
> > > さらにネスト
```

### output

> 引用がネストされることもあります。
>
> > inyo no nest
> >
> > > さらにネスト

## 引用と脚注

### syntax

```markdown
> 吾輩は猫である。名前はまだない。
> — <cite>「吾輩は猫である」[^1]</cite>より引用

[^1]: 『吾輩は猫である』（わがはいはねこである）は、夏目漱石の長編小説であり、処女小説である。
```

### output

> 吾輩は猫である。名前はまだない。
> — <cite>「吾輩は猫である」[^1]</cite>より引用

[^1]: 『吾輩は猫である』（わがはいはねこである）は、夏目漱石の長編小説であり、処女小説である。


## コードブロック

## syntax

````markdown
```html
<!doctype html>
<html lang="ja">
  <head>
    <meta charset="utf-8" />
    <title>Example HTML5 Document</title>
  </head>
  <body>
    <p>Test</p>
  </body>
</html>
```
````

### output

```html
<!doctype html>
<html lang="ja">
  <head>
    <meta charset="utf-8" />
    <title>Example HTML5 Document</title>
  </head>
  <body>
    <p>Test</p>
  </body>
</html>
```
## タイトル付きコードブロック

### syntax

````markdown
```ts title="sample.ts"
console.log('Hello world.');
```

````

### output


```ts title="sample.ts"
console.log('Hello world.');
```

## テーブル

| 1 | 2 | 3 |
|---|---|---|
| 4 | 5 | 6 |
| 7 | 8 | 9 |


## 文字の装飾

### syntax

```markdown
|    斜体   | 太字     | 打ち消し線      |  インラインコード  |
| --------- | -------- | --------------- | ------------------ |
| _italics_ | **bold** | ~negative line~ | `code`             |
| _斜体_    | **太字** | ~打ち消し線~    | `インラインコード` |
```

### output

|    斜体   | 太字     | 打ち消し線      |  インラインコード  |
| --------- | -------- | --------------- | ------------------ |
| _italics_ | **bold** | ~negative line~ | `code`             |
| _斜体_    | **太字** | ~打ち消し線~    | `インラインコード` |



## 画像



## その他 abbr, sub, sup, kbd, mark

### syntax

```markdown
<abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format.

H<sub>2</sub>O

X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>

Press <kbd>CTRL</kbd> + <kbd>ALT</kbd> + <kbd>Delete</kbd> to end the session.

Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.
```

### output

<abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format.

H<sub>2</sub>O

X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>

Press <kbd>CTRL</kbd> + <kbd>ALT</kbd> + <kbd>Delete</kbd> to end the session.

Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.

## directive

### syntax

```markdown
::: tips
のーとだよ
:::

::: warning
のーとだよ
:::


::: info
ふくすうぎょうの
ちっぷす
ふくすうちっぷす
:::

::: note
This is a note.
:::
```

### output

::: tips
のーとだよ
:::

::: warning
のーとだよ
:::


::: info
ふくすうぎょうの
ちっぷす
ふくすうちっぷす
:::

::: note
This is a note.
:::

