-
-
Notifications
You must be signed in to change notification settings - Fork 696
Allow external variables into markdown render #2053
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
Comments
You can easily create 1 component, say "v.vue". And use it in your markdown file like this: :v{var="name"} <!-- `name` can be any global variable's key --> Here, The
|
I would like to inject a variable retrieved from
|
In order to add random external variables into Refer this: https://content.nuxtjs.org/api/advanced#contentfileafterparse Note: You can't add them after the markdown has already been rendered, by simply adding them as So, in the I had tried this in Content V1 as well to fetch GitHub releases and then add them as a key into the implicit frontmatter in the |
Omg this is really cool @maximepvrt 👏🏻 |
I would like to request the addition of external variables support in Nuxt Content. As of now, it is not possible to use variables defined outside of the content file, which can limit the flexibility of the application.
In many cases, it is essential to have access to external variables to generate dynamic content or to implement complex logic. For instance, it could be useful to define site-wide variables or to read data from an external API.
Adding external variables support would greatly enhance the capabilities of Nuxt Content and make it a more powerful and flexible tool. It would also help developers to build more sophisticated applications while keeping the content organized and easy to manage.
It would be an extension of this feature #1266
Thank you for considering my request.
The text was updated successfully, but these errors were encountered: