vocs icon indicating copy to clipboard operation
vocs copied to clipboard

Escaping $ in code blocks

Open stephancill opened this issue 1 year ago • 3 comments

When rendering a code block with

`https://${process.env.VERCEL_URL}`

The $ is not rendered, how can I fix this?

stephancill avatar May 13 '24 12:05 stephancill

Interesting thing is that when you put a space between / and $ (https:// ${process.env.VERCEL_URL}), it renders $:

`https:// ${process.env.VERCEL_URL}`

michalkvasnicak avatar May 14 '24 08:05 michalkvasnicak

it seems that // is escaping $

michalkvasnicak avatar May 14 '24 08:05 michalkvasnicak

Adding second $ fixes the issue.

michalkvasnicak avatar May 14 '24 08:05 michalkvasnicak

Fixed on vocs@next

jxom avatar Feb 17 '25 08:02 jxom