-
-
Notifications
You must be signed in to change notification settings - Fork 604
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
Variable binding in Markdown causes anchor links to fail #2637
Comments
My analysis is that the sequence of conversion inside Markdown is incorrect.
In Vitepress there is also a similar feature of embedding frontmatter variables inside content, and it uses the early binding strategy. Embedded Vue components are processed at the end. This work flow creates the correct conversion of Markdown with embedded variables and components without breaking any Markdown syntax. |
Hello @kaceo Early binding can be implemented using Content transformers by replacing bindings before parsing the markdown. |
Environment
Reproduction
See below
Describe the bug
In a markdown file, if an anchor link contains a variable substition, it does not become a link
e.g.
After nuxt runs, line 1 creates a line of text correctly substituted.
Line 2 creates the substitution correctly but Markdown does not change it into an anchor:
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: