Skip to content

mdoc v2.2.23

Compare
Choose a tag to compare
@github-actions github-actions released this 27 Aug 06:37
· 467 commits to main since this release
ad331b2

Crash blocks now support multiple statements

Previously, every statement within an mdoc:crash code fence would be wrapped in individual try/catch meaning that you couldn't reference variables between statements. For example, the code fence below would fail to compile because x from the statement 100 / x was undefined.

```scala mdoc:crash
val x = 0
100 /  x
```

Now, thanks to #551 by @keynmol the entire code fence gets wrapped in a single try/catch so that you reference variables between statements.

What’s Changed