Language identifier is missing from fenced code block when it is quoted

Someone can write something like this:

```py
print()
```

But when you then quote its output:

print()

it will be quoted without the language identifier, like this:

print()

Specifically, I noticed this in https://forum.typst.app, and not only me. This is quite annoying to fix manually every time, so I’m pretty confident that this is a bug. Preserving the language identifier is the expected behavior.

2 Likes

Here is a live example of how the code block is quoted (without language identifier).

2 Likes