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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Archive

Floating embedded images?

Started by Muut Archive 9 years ago · 0 replies · 859 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 1277 9 years ago
Archive · by Muut Archive, 9 years ago
2 885 9 years ago
Archive · by Muut Archive, 9 years ago
2 4014 9 years ago
Archive · by Muut Archive, 9 years ago
1 2891 9 years ago
Archive · by Muut Archive, 9 years ago
3 1074 9 years ago