Today I Learned

hashrocket 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:


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

<img src="" 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.

See More #html-css TILs