Markdown ガイド
サポートされているすべての Markdown 構文を、ライブ例付きで解説する総合リファレンスガイド。
見出し
# 記号で見出しを定義します。# の数が見出しのレベルを決めます。# 1 つが H1、###### 6 つが H6 です。
H1 – H6
構文
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6プレビュー
レンダリング中...
水平線
行内に 3 つ以上のハイフン、アンダースコア、アスタリスクだけを書くと、テーマの区切り(水平線)になります。
Dashes
構文
-----プレビュー
レンダリング中...
Underscores
構文
_____プレビュー
レンダリング中...
Asterisks
構文
*****プレビュー
レンダリング中...
強調
テキストをアスタリスク(*)またはアンダースコア(_)で囲んで、太字、斜体、取り消し線を付けます。
Bold
構文
**This is bold text**
__This is bold text__プレビュー
レンダリング中...
Italic
構文
*This is italic text*
_This is italic text_プレビュー
レンダリング中...
Strikethrough
構文
~~Strikethrough~~プレビュー
レンダリング中...
リスト
番号なしリストは -、+、* で、番号付きリストは数字で作成します。入れ子の項目は、タブまたはスペース 2 つでインデントします。
Unordered list
構文
- Unordered
- Create a list by starting a line with `+`, `-`, or `*`
- list
- With nesting too
- endプレビュー
レンダリング中...
Ordered list
構文
1. Ordered
2. list
1. With nestingプレビュー
レンダリング中...
Start numbering with offset
構文
57. foo
1. barプレビュー
レンダリング中...
タスクリスト
GitHub Flavored Markdown の構文で、インタラクティブなチェックリストを作成します。空のチェックボックスには - [ ] を、チェック済みには - [x] を使います。
Checkboxes
構文
- [x] Write the press release
- [ ] Update the website
- [ ] Contact the mediaプレビュー
レンダリング中...
引用
> を先頭に付けて引用を作成します。> を複数重ねると、入れ子の引用になります。
Nested blockquotes
構文
> Blockquotes can also be nested...
>> ...by using additional greater-than signs right next to each other...
> > > ...or with spaces between arrows.プレビュー
レンダリング中...
コード
1 つのバッククォートでインラインコードを、3 つのバッククォートでフェンスコードブロックを作成します。開始のフェンスの後ろに言語名を付けると、シンタックスハイライトが適用されます。
Inline code
構文
Inline `code`プレビュー
レンダリング中...
Code block "fences"
構文
```
Sample text here...
```プレビュー
レンダリング中...
JavaScript — syntax highlighting
構文
```js
var foo = function (bar) {
return bar++;
};
console.log(foo(5));
```プレビュー
レンダリング中...
Python — syntax highlighting
構文
```python
def hello(name):
print(f"Hello, {name}!")
hello("World")
```プレビュー
レンダリング中...
表
パイプ(|)の区切りで表を作ります。区切り行のコロン(:)で列の配置を指定します:左揃え :---、中央揃え :---:、右揃え ---:。
Basic table
構文
| Trial | Result |
|-------|---------|
| 1 | Fail |
| 2 | Fail |
| 3 | Success |プレビュー
レンダリング中...
Column alignment
構文
| Left | Center | Right |
|:------|:------:|------:|
| Left | Center | Right |
| Align | Column | Data |プレビュー
レンダリング中...
リンク
[テキスト](url) の構文でハイパーリンクを作成します。
Link text
構文
[Markdown Viewer](https://markdownviewer.cc)プレビュー
レンダリング中...
画像
 の構文で画像を埋め込みます。リンクと同じですが、先頭に ! を付けます。
Basic image
構文
プレビュー
レンダリング中...
数式
MathJax でレンダリングされる LaTeX 構文で、数式を書きます。インライン数式には $...$ を、ブロック(ディスプレイ)数式には $$...$$ を使います。
Inline math
構文
Einstein's famous equation: $E = mc^2$プレビュー
レンダリング中...
Block equation
構文
$$\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}$$プレビュー
レンダリング中...
Quadratic formula
構文
$$\frac{-b \pm \sqrt{b^2-4ac}}{2a}$$プレビュー
レンダリング中...
Matrix
構文
$$\begin{pmatrix} a & b \\ c & d \end{pmatrix}$$プレビュー
レンダリング中...