Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Floating embedded images?

Started by Muut Archive 9 years ago · 0 replies · 1599 views
9 years ago

I wanted to do some styling and noticed that Grav always outputs Markdown images like ![](image.jpg) nested in <p></p> tags. If I put the macro in the same line as the text, it sits inside the text's <p> tag, so that's no solution either.

How do I get:

HTML
<p>Some text</p>
<img class="float-right" src="myimage.jpg">
<p>More text</p>

...like one would expect on a regular website?

Suggested topics

Topic Participants Replies Views Activity
Archive · by Muut Archive, 10 years ago
1 720 2 weeks ago
Archive · by Deleted User, 9 years ago
0 3077 9 years ago
Archive · by Muut Archive, 9 years ago
2 2018 9 years ago
Archive · by Muut Archive, 9 years ago
2 5376 9 years ago
Archive · by Muut Archive, 9 years ago
1 4167 9 years ago