So I am trying to fit markdown text+image inside a panel. I am integrating flask blogging extension into my website. The issue is that this renders the text containing image links and paragraph at once so I cant individually select images to resize them. Is it possible for me to style the div block in such a way that all the text and images fit inside properly. This is how I am rendering atm,
<p style="width: 100%">{{ post.rendered_text | safe }}</p>
It fits the text okay but the images go out of the div sometimes. I would be grateful if someone could please point me in the right direction.
Code for panel,
<div class="panel panel-default" style="margin-top: 60px; "> <!-- Blog Post -->
<div class="panel-heading">
<h3 class="panel-title">{{ post.title }}</h3>
</div>
<div class="panel-body" style="width: 100%">
<p style="width: 100%">{{ post.rendered_text | safe }}</p>
</div>
<div class="panel-footer">Posted by Name on Date</div>
</div>