Skip to content
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

How do I pass a value to markdown? #45

Open
3 tasks done
theOnlyUnique opened this issue Mar 25, 2024 · 1 comment
Open
3 tasks done

How do I pass a value to markdown? #45

theOnlyUnique opened this issue Mar 25, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@theOnlyUnique
Copy link

Clear and concise description of the problem

I want to be able to dynamically pass a value to markdown. What should I do? is there any way to let vue manipulate the frontmatter property?
我想要能够动态地传一个值进去给到markdown,请问我该怎么做,有什么方法能让vue操作frontmatter属性吗?

Suggested solution

It would be great to provide an entry to manipulate frontmatter attributes in vue3. If you already have it, can you write it in readme? thank you very much.
如果能提供一个在vue3里面操作frontmatter属性的入口就非常棒了,如果已经有了能麻烦写进readme吗,非常感谢

Alternative

No response

Additional context

No response

Validations

@theOnlyUnique theOnlyUnique added the enhancement New feature or request label Mar 25, 2024
@szabi
Copy link

szabi commented May 27, 2024

You can pass a value like this:

<script setup>
import { myValue } from '@/myModule';
const myOtherValue = 'Hello';
</script>

# Greeting

{{ myOtherValue }}, {{ myValue }}!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants