Skip to content

Instantly share code, notes, and snippets.

@higeknuckle
Last active April 22, 2024 04:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save higeknuckle/c9b2dac43fffa3ae0774e148a69a2e6b to your computer and use it in GitHub Desktop.
Save higeknuckle/c9b2dac43fffa3ae0774e148a69a2e6b to your computer and use it in GitHub Desktop.
Markdownチートシート

Markdownチートシート

Overview

このMarkdownチートシートは@higeknuckleが個人的な学習と活用のために作成しました。
Github Flavored Markdownを扱っています。
https://guides.github.com/features/mastering-markdown/ を日本語訳したものがベースになっています。

Basic Syntax

要素 Markdown記法 表示
見出し # H1
## H2
### H3
#### H4
##### H5
###### H6

H1


H2


(以下省略)
太字 **bold text** bold text
斜体字 *italic text* italic text
順序なしリスト - First item
- Second item
- Third item
  • First item
  • Second item
  • Third item
順序ありリスト 1. First item
2. Second item
3. Third item
  1. First item
  2. Second item
  3. Third item
画像 ![alt text](image.jpg) (省略)
リンク [title](https://www.example.com) title
引用 > blockquote line1
> blockquote line2
blockquote line1
blockquote line2
コード `this is inline code`
this is inline code
区切り線 ---

Extended Syntax

要素名のリンクをクリックして表示結果を確認

要素 Markdown記法
シンタックスハイライト ```javascript
{
  "firstName":
  "John",
  "lastName": "Smith",
  "age": 25
}
```
タスクリスト - [x] Write the press release
- [ ] Update the website
- [ ] Contact the media
Header1               | Header2                 | Header 3
:---                  | :---:                   |  ---:
Cell 1                | Cell 2 (Center aligned) | Cell 3
Cell 3 (Left aligned) | Cell 4                  | Cell 6 (Right aligned)
コミットSHAへのリンク
(Issues/Pull Requests限定)
16c999e8c71134401a78d4d46435517b2271d6ac
higeknuckle@16c999e8c71134401a78d4d46435517b2271d6ac
higeknuckle/markdown-cheatsheet@16c999e8c71134401a78d4d46435517b2271d6ac
Issueへのリンク
(Issues/Pull Requests限定)
#1
higeknuckle#1
higeknuckle/markdown-cheatsheet#1
@ユーザ名へのメンション
(Issues/Pull Requests限定)
@higeknuckle
URLの自動リンク化 (URLは自動でリンクに変換される)
打ち消し線 ~~The world is flat.~~

Links

Memo

気が向いたらmattcone/markdown-guideに日本語訳のプルリク送ってみるのも良いかもしれない。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment