I want to create a figure where I have a normal caption and some raw text which is http syntax highlighted. From what I understand, raw text is not easily breakable. I then thought of using normal text but there is no “lang: http” support. How would you create the figure below and break the JSON Web Token (JWT) or any other long strings for that matter?
#show figure: set align(start)
#figure(
caption: "Normal caption explaining this HTTP POST request.",
rect(
```http
POST /a-very-long-api-endpoint-which-just-could-not-have-been-broken-down-better-because-the-developer-had-a-quote-system-end-quote/wow/that/is/truely/long HTTP/1.1
Host: example.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:120.0) Gecko/201001 Firefox/120.0
Accept: image/avif,image/webp,*/*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Referer: example.com
Authentication: Bearer eyJhbGciOiJIUzI1NiJ9.eyJSb2xlIjoiQWRtaW5mZ2R6Zmd6ZGZnZmRzZyIsIklzc3VlciI6Iklzc3VlciIsIlVzZXJuYW1lIjoiSmF2YUluVXNlZGZnZHNmZ3N6ZGZnenNkIiwiZHNmZ2J4ZHNhZmF3ZWZzZDxmYXdldmdmYXJldGFzZnJnIjoiZHNmZ2J4ZHNhZmF3ZWZzZDxmYXdldmdmYXJldGFzZnJnIiwiZXhwIjoxNzcyMTgzNzk5LCJpYXQiOjE3NzIxODM3OTl9.NvgjoakOU7E_GqnQL5kVP7qGvxIMi3KJvtLbDxAb9JQ
{
Not-Important: true
}
```
)
)