I am using reveal-md
to render a two-column slide with code and an image, taking inspiration from How to use two-column layout with reveal.js?.
A reproducible example is:
---
title: "Bad two-columns rendering"
author: "Yours truly"
---
 <!-- .element: style="float: right; width: 50%" -->
```python
print("Is the rendering bad?")
print("Yeah!")
print("How can you be sure?")
print("Look at the beak of Tux")
```
<!-- .element: style="width: 50%" -->
Once rendered, I get
If you look attentively, you can see that the "code box" overextends to the right and overlaps with the image (see the red highlighting)
Does anyone know how to fix this directly in the source (markdown) code? It's a not-so-minor annoyance. I tried fiddling with the markdown above but to no avail.