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 improvements -- markdown inside json value #1255

Open
aaronvg opened this issue Dec 17, 2024 · 0 comments
Open

Parser improvements -- markdown inside json value #1255

aaronvg opened this issue Dec 17, 2024 · 0 comments

Comments

@aaronvg
Copy link
Contributor

aaronvg commented Dec 17, 2024

This one is hard to do, but wish we could parse all of finalAnswer correctly here:
image

Instead, our parser stops on the first closing curly found in the markdown.

the remedy is to tell people to use triple-quote or triple-backtic format, which is more resilient. But the parser should ideally know that it's trying to parse finalAnswer, which is a string, and start keeping track of opened/closed parentheses.

There's still corner cases where it would fail (if the parentheses or curlies don't match up perhaps), but more resilient.

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