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

Adds additional escapes to string attributes #470

Merged
merged 1 commit into from
Nov 28, 2023
Merged

Conversation

rpaul-stripe
Copy link
Contributor

@rpaul-stripe rpaul-stripe commented Nov 27, 2023

In our original Markdoc spec, we intended to support \n, \r, and \t as valid escape characters, but we never actually got around to adding these in the parser. This PR adds proper support for them in the pegjs grammar and adds a marktest case to verify that the implementation behaves correctly.

This addresses the issue reported by @emmatown in #468.

Closes #468

@rpaul-stripe rpaul-stripe merged commit 4d3dd64 into main Nov 28, 2023
2 checks passed
@rpaul-stripe rpaul-stripe deleted the add-escapes branch November 28, 2023 14:41
@RomanHotsiy
Copy link
Collaborator

Hey @rpaul-stripe 🙌

Do you plan to cut a new release with this fix anytime soon?

@rpaul-stripe
Copy link
Contributor Author

@RomanHotsiy yep, I'm going to push out a new release today that includes this and the table schema fix. I already incremented the version in the table PR.

@RomanHotsiy
Copy link
Collaborator

Amazing! Thanks a lot!

@adamaltman
Copy link

Thanks @rpaul-stripe !

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.

\n in string attribute causes syntax error
4 participants