Dynamically Update Variable in Code-Blocks
Closed this issue · 1 comments
JamesLawton commented
I am looking to dynamically update a variable in a code-block when vocs is refreshed. I see there is options to do this in other markdown renderers, but wasn't able to get this updated in vocs. For example:
:::code-group
```bash [cURL]
curl -X POST -H "Content-Type: application/json" -H "X-Access-Key: {{ACCESS_KEY}}"
:::
will simply output the string. Any ideas on this?
jxom commented
The following should work:
example.mdx
:::code-group
export const ACCESS_KEY = 'abc'
```bash [cURL]
curl -X POST -H "Content-Type: application/json" -H "X-Access-Key: {ACCESS_KEY}"
:::