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

fix: add column info to node positions #52

Merged
merged 1 commit into from Aug 20, 2022
Merged

fix: add column info to node positions #52

merged 1 commit into from Aug 20, 2022

Conversation

timlrx
Copy link
Owner

@timlrx timlrx commented Aug 20, 2022

On further investigation into #44, I realized that the error is caused if the node position start and end does not contain a valid Point type i.e. with a line and column (as specified in the typescript file). Not sure how @mdx/loader uses it , but this fix assigns a column value of 1 to all the node position information that we are adding in to prevent the error.

  • remove recursivelyStripPositions bandaid
  • add column info to node positions

@timlrx timlrx merged commit 7944bd0 into main Aug 20, 2022
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

Successfully merging this pull request may close these issues.

None yet

1 participant