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

Parser turns html entities to strings #175

Merged
merged 3 commits into from
May 27, 2024
Merged

Conversation

dqnykamp
Copy link
Member

With this PR, the doenetml parser converts html entities and the like into strings and merges consecutive strings.

With this change, cypress tests are finally passing again.

@dqnykamp dqnykamp requested a review from siefkenj May 27, 2024 04:16
cursor.name === "Ampersand" ||
cursor.name === "EntityReference" ||
cursor.name === "CharacterReference"
) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parser.ts is only used in legacy code, right? The new DAST code doesn't touch it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are other exports from parser.ts used in the new code, but they don't use the parseAndCompile export, which is the one changed in this PR. (If the had used parseAndCompile, they would have been losing any entities, etc.

@siefkenj
Copy link
Contributor

Looks good to me! It'll be good to have all the tests working :-)

@dqnykamp dqnykamp merged commit 08d74d0 into Doenet:main May 27, 2024
1 check passed
@dqnykamp dqnykamp deleted the parse-entities branch May 27, 2024 23:23
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.

2 participants