LoginSignup
5
2

More than 3 years have passed since last update.

markdownに貼り付ける画像のサイズ調整方法

Posted at

概要

GrowiGit Wikiなどの記事をmarkdownで記載することは多いです。
ただ、通常どおりmarkdownの記法に倣って画像を貼り付けた場合、サイズの調整が効かないため工夫が必要です。

方法

通常、markdowでは

![hogehoge](image_path)

のように画像を表現しますが、

<img alt="hogehoge" src="image_path" width="{画像サイズ}">

のようにHTMLタグ形式で記載することでサイズ調整ができます。
上記の{画像サイズ}の部分には300px45%など任意の値を設定します。

5
2
0

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
5
2