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

TOML Support #290

Open
rushsteve1 opened this issue Mar 10, 2025 · 2 comments
Open

TOML Support #290

rushsteve1 opened this issue Mar 10, 2025 · 2 comments

Comments

@rushsteve1
Copy link

Typst and much of the rest of the Rust ecosystem are pretty into TOML instead of YAML. I also personally find it a nicer format, so it would be really nice to be able to use it in Hayagriva.

I would be willing to contribute this feature if there's demand.

@srfsh
Copy link

srfsh commented Mar 12, 2025

That would be pretty nice, but I think the same affect could be achieved with plain Typst. I haven't tried yet, but it appears that you can now pass the bytes directly to the #biblography() call. Which means you could have a programmable version of your bibliography right in Typst. To be frank, I think this is better than any other format I could imagine.

Will write here once I have time to tweak around and implement what I have in mind.

@rushsteve1
Copy link
Author

I attempted to do that and ran into some issues at the time.

More than that I can see Hayagriva and its file format being useful in a lot of places outside of Typst too. There's not many other portable bibliography formats (or perhaps too many). Adding TOML in the reference implementation expands the places Hayagriva could fit in, and eventually adding other formats (or making it format agnostic) could expand it even further.

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

2 participants