Contact: trevor.tomesh@uwrf.edu
University of Wisconsin - River Falls Department of Computer, Information and Data Science Created: September 19th 2024 Modified: September 19th 2024
Dillinger is a popular online markdown editor that allows you to create and format markdown files easily. Here's a step-by-step guide to inserting an image in your markdown document using Dillinger.
Go to Dillinger.io.
If you don’t have an account, you can use it without signing up, or create an account for more features.
You need the image you want to insert in your markdown document hosted somewhere online (e.g., a cloud service, image hosting platform, or a GitHub repository). You can’t upload images directly to Dillinger, so they must be accessible via a URL.
Here are some options:
Upload to Imgur: You can upload your image to Imgur or any similar service.
Use an Existing Online Image: If the image already exists online, simply copy the image URL.
To insert an image, use the following markdown syntax:

Alt text
: A short description of the image for accessibility purposes.
image_url
: The direct URL where your image is hosted.
Example:

Once you’ve added the image markdown, Dillinger will automatically update the preview pane on the right.
If everything is correct, you should see the image displayed.
Markdown doesn’t natively support resizing images, but you can use HTML directly in Dillinger to resize images. For example:
<img src="https://example.com/path/to/image.jpg" alt="My sample image" width="400" />
You can set the width
and height
attributes to control the size.
Once you're happy with the image placement:
You can save the document to your Dillinger account or export it.
Dillinger supports export to GitHub, Dropbox, OneDrive, or direct downloads as Markdown, HTML, or PDF files.
# Sample Markdown Document
Here is an example image inserted in Dillinger:

And here is a resized image using HTML:
<img src="https://dillinger.io/images/dillinger.png" alt="Dillinger Logo" width="300">
This is how easy it is to insert an image using Dillinger.
OpenAI, “Response generated by ChatGPT on how to insert an image into Dillinger markdown editor,” ChatGPT, OpenAI, 2024. [Online]. Available: https://chat.openai.com/. [Accessed: Sep. 19, 2024].