#figure(
sourcecode()[
```scala
def foo(val a : Any) : Int = {
a match :
case a: Int => 12
case _ => 42
}
```],
caption: "Un tout petit listing en `Scala`"
)
The Scala in the caption is rendered as is and not interpreted as real markdown. It seems hard to use eval for the caption itself (or I don't know how to do it right now).
In
The
Scala
in the caption is rendered as is and not interpreted as real markdown. It seems hard to useeval
for the caption itself (or I don't know how to do it right now).