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 · 1528 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 Deleted User, 9 years ago
0 2910 9 years ago
Archive · by Muut Archive, 9 years ago
2 1894 9 years ago
Archive · by Muut Archive, 9 years ago
2 5229 9 years ago
Archive · by Muut Archive, 9 years ago
1 4050 9 years ago
Archive · by Muut Archive, 9 years ago
3 1985 9 years ago