Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Floating embedded images?

Started by Muut Archive 9 years ago · 0 replies · 1005 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 1562 9 years ago
Archive · by Muut Archive, 9 years ago
2 1066 9 years ago
Archive · by Muut Archive, 9 years ago
2 4212 9 years ago
Archive · by Muut Archive, 9 years ago
1 3095 9 years ago
Archive · by Muut Archive, 9 years ago
3 1244 9 years ago