How can I convert `str` type to a `content` type (string to content)?

Hello @Roberto,

This could be achieved with the use of the Evaluate Function:

#let s = "This is a *string* defining $pi$ as $3.14$!"
#s
#eval(s, mode: "markup")

image

1 Like