Skip to content

Escaping $ in code blocks #164

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
stephancill opened this issue May 13, 2024 · 4 comments
Closed

Escaping $ in code blocks #164

stephancill opened this issue May 13, 2024 · 4 comments

Comments

@stephancill
Copy link

When rendering a code block with

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

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

@michalkvasnicak
Copy link

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

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

@michalkvasnicak
Copy link

it seems that // is escaping $

@michalkvasnicak
Copy link

Adding second $ fixes the issue.

@jxom
Copy link
Member

jxom commented Feb 17, 2025

Fixed on vocs@next

@jxom jxom closed this as completed Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants