Literals

In the example below, long is a literal. Literals can appear in various contexts in an MF2 message. For example, the right-hand side (part appearing to the right of an '=' sign) of an option can be either a variable or a literal. You can tell that it's a literal in this case because it doesn't begin with $. Rarely, literals have to be quoted (enclosed in | / | characters).

Today is {$date :datetime weekday=long}.
{"date": "2024-06-06"}

The text |image.png| is an example of a quoted literal. It has to be quoted because it includes a '.' character. In general, literals containing non-alphanumeric characters have to be quoted.