Inserting Bootstrap 4 Responsive Images In Kramdown
The common markup for inserting images in kramdown is:
![Homepage screenshot](/assets/homescreen.png)
The most used way to add a class to any markup is to use inline annotations in the line below of the markup with {:class="a-class"}
but in this case it should be used in the same line, so this:
![Homepage screenshot](/assets/homescreen.png){:class="img-fluid"}
generates:
<img src="/assets/rails_first_homescreen.png" alt="Homepage screenshot" class="img-fluid">
comments powered by Disqus
- Inserting Bootstrap 4 Responsive Images In Kramdown
- Kramdown General ConceptsJune 22, 2016
Articles
Except as otherwise noted, the content of this page is licensed under CC BY-NC-ND 4.0 . Terms and Policy.
Powered by SimpleIT Hugo Theme
·