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(markdoc): Fix markdoc edge case with special characters in json #90

Merged
merged 2 commits into from
Oct 18, 2023

Conversation

Weetbix
Copy link
Collaborator

@Weetbix Weetbix commented Oct 13, 2023

The previous approach of filtering the text nodes in the AST does not always work, as special characters in JSON can cause the parser to output multiple text nodes.

This PR fixes that by just moving the markdoc stripping to work on the entire doc string.

@Weetbix Weetbix self-assigned this Oct 13, 2023
@Weetbix Weetbix marked this pull request as ready for review October 13, 2023 03:57
@Weetbix Weetbix merged commit 7964d23 into main Oct 18, 2023
5 checks passed
@Weetbix Weetbix deleted the jh/fix-markdoc-edge-case branch October 18, 2023 03:55
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

2 participants