ISC-HEI / isc-hei-report

A typst template for reports in the ISC @ HEI curricula
https://isc.hevs.ch
MIT License
6 stars 2 forks source link

Markdown in caption not working #9

Closed pmudry closed 4 months ago

pmudry commented 4 months ago

In

#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).

pmudry commented 4 months ago

Fixed in 829e503