Today I Learned

A Hashrocket project

HTML in Markdown

Today I learned that you can add raw HTML directly into a Markdown file.

This realization came when trying to include an image in a blog post. I started out by linking to the image with standard Markdown syntax:

![Image](https://s3.amazonaws.com/jake/image.png)

But later realized I wanted to include a responsive Bootstrap class on the image, which I did with raw HTML:

<img src="https://s3.amazonaws.com/jake/image.png" class="img-responsive" alt="Image">

It’s pretty cool that you can do both— Markdown syntax gets processed into HTML, but raw HTML can be used as well.