LoginSignup
3
1

More than 3 years have passed since last update.

よく使うMarkdown記法

Last updated at Posted at 2019-11-24

Markdownとは

markdownはqiitaの記事作成やgithubのREADMEファイルなどの文章の書き方です。
手軽に文章構造を明示できるので様々なオンラインプラットフォームで採用されています。
よく使われるMarkdownの記法を紹介します。

見出し

書き方

# 見出しh1
## 見出し h2
### 見出し h3
#### 見出し h4
##### 見出し h5
###### 見出し h6

実装後

見出しh1

見出し h2

見出し h3

見出し h4

見出し h5
見出し h6

強調

書き方

** テキスト **

実装後

テキスト

番号付きリスト

書き方

1. テキスト
2. テキスト
3. テキスト
  1. テキスト
  2. テキスト
  3. テキスト

リスト

書き方

* テキスト
* テキスト
* テキスト

実装後

  • テキスト
  • テキスト
  • テキスト

インライン表示

書き方

`ソースコード`
`var text = "hello"`

実装後

ソースコード
var text = "hello"

コードの追加

書き方
rubyとしている箇所は言語なので、phpで表記したい場合はphpにしてください

```ruby:title
puts "hello"
```

実装後

title
puts "hello"

リンクの書き方

書き方

[タイトル](URL)

[youtube](https://www.youtube.com/)

実装後
youtube

画像の追加

書き方

![desktop-1985856_1280.jpg](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/528825/c4e55ebc-2345-0de3-5e81-a6c785911dc5.jpeg)

実装後
desktop-1985856_1280.jpg

3
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1