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

Nextra crashes if props are used within headings #3979

Open
nikischin opened this issue Jan 18, 2025 · 0 comments
Open

Nextra crashes if props are used within headings #3979

nikischin opened this issue Jan 18, 2025 · 0 comments

Comments

@nikischin
Copy link
Contributor

Nextra crashes if props are used within headings:

## Someheading containing {props.someProp}

Will produce an error like this:

Cannot read properties of undefined (reading 'props.someProp')
...
export function useTOC(props) {
  13 |   return [{
> 14 |     value: <>{"Someheading containing "}{props.someProp}</>,

Still persists in v4

Taken from @nikischin in #3749 (comment)

@nikischin nikischin changed the title Nextra crashes if props are used within headings: Nextra crashes if props are used within headings Jan 20, 2025
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