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.

Support

How to embed an inline image?

Started by Frederik Niedernolte 9 years ago · 4 replies · 1744 views
9 years ago

I have added an embedded lightbox image and want to show a list to the right of the image. Currently I cannot find a possibility to do that. Can you please help me?
Thanks in advance!

PS: This is the current Markdown code:

MARKDOWN
![name](name.jpg?lightbox=600,400&resize=200,200)

* 1
* 2
* 3
9 years ago

It's tricky to achieve advanced layout techniques with markdown syntax. What you really need to do for this is to use HTML, the problem with this however, is that you can't put markdown inside HTML (well you can technically with Markdown Extra but that has it's own issues).

My suggestion is to enable twig processing on the page and use Twig-syntax for the image lightbox inside of a 2-cell table (simplest way to achieve your 2 columns) and a regular HTML list for your second column.

9 years ago

Thanks for the hint, I have to deepen my knowledge in Twig-syntax first for that 🙂

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 56 13 hours ago
Support · by Anna, 3 days ago
2 61 16 hours ago
Support · by Justin Young, 17 hours ago
1 32 17 hours ago
Support · by Duc , 1 week ago
2 66 5 days ago
Support · by Colin Hume, 1 week ago
2 59 5 days ago