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

Trying to make binding-data-in-markdown work with markdown links #2792

Open
xalunda opened this issue Sep 21, 2024 · 0 comments
Open

Trying to make binding-data-in-markdown work with markdown links #2792

xalunda opened this issue Sep 21, 2024 · 0 comments

Comments

@xalunda
Copy link

xalunda commented Sep 21, 2024

Environment

  • Operating System: Darwin
  • Node Version: v18.20.4
  • Nuxt Version: 3.13.1
  • CLI Version: 3.13.1
  • Nitro Version: 2.9.7
  • Package Manager: pnpm@9.11.0
  • Builder: -
  • User Config: compatibilityDate, devtools, future, extends, alias, i18n, css, vite
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/nuxt-starter-ysynij?file=content%2Findex.md

Describe the bug

Hi everyone!

I'm not sure if this is a bug or a misuse on my part.

I'm trying to make a simple link in markdown containing binding-data-in-markdown

[text](url)

I have two variables websiteName and websiteLink in the :data prop of ContentRenderer.

I'm tried lots of syntax combinations, I'm trying to:

[{{$doc.websiteName}}]({{$doc.websiteLink}})

The text part is correctly replaced but the link part is not:

%7B%7B$doc.websiteLink%7D%7D

Here is a reproduction.

Let me know if I can help in any way.

Additional context

I also tried to override the ProseA component to check for debug. By the time it reaches this component, the href prop is already this one:

%7B%7B$doc.websiteLink%7D%7D

Logs

No response

@xalunda xalunda changed the title Trying to make binding-data-in-markdown work with props Trying to make binding-data-in-markdown work with links Sep 21, 2024
@xalunda xalunda changed the title Trying to make binding-data-in-markdown work with links Trying to make binding-data-in-markdown work with markdown links Sep 21, 2024
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

1 participant