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

Making citation for JSON and CSV more readable #1944

Open
ZealinBee opened this issue Aug 29, 2024 · 1 comment
Open

Making citation for JSON and CSV more readable #1944

ZealinBee opened this issue Aug 29, 2024 · 1 comment
Labels
enhancement New feature or request open issue A validated issue that should be tackled. Comment if you'd like it assigned to you.

Comments

@ZealinBee
Copy link

This issue is for a: (mark with an x)


- [ ] bug report -> please search issues before submitting

- [x] feature request

- [ ] documentation issue or request

- [ ] regression (a behavior that used to work and stopped in a new release)

The currently application allows the user to see the precise PDF page for citation, however, for JSON, it shows the entire JSON file without any highlight. For CSV it simply just downloads the relevant CSV to the user's laptop, not showing anything in the application, could there be a better way to cite JSON/CSV?

@pamelafox
Copy link
Collaborator

It'd be great if we could have better citation rendering for those formats without needing to bring in any additional packages. We already have react-syntax-highlighter for JSON (for our Thought Process tab), so we could theoretically use that for JSON citations.
For CSV, we could perhaps also use that highlighter. We'd also need to change the mime-type, it sounds like.

Pull requests are welcome if you give it a go!

@pamelafox pamelafox added open issue A validated issue that should be tackled. Comment if you'd like it assigned to you. enhancement New feature or request labels Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request open issue A validated issue that should be tackled. Comment if you'd like it assigned to you.
Projects
None yet
Development

No branches or pull requests

2 participants