Skip to content

Tweak plugin types - #20

Merged
ensko merged 3 commits into
ensko:mainfrom
alyst:tweak_plugin_types
Jul 16, 2025
Merged

Tweak plugin types#20
ensko merged 3 commits into
ensko:mainfrom
alyst:tweak_plugin_types

Conversation

@alyst

@alyst alyst commented Jul 12, 2025

Copy link
Copy Markdown
Contributor

The subset of #18 that renames Alexandria's Entry type (a wrapper around Hayagriva's BibliographyItem) to Reference to make it more obvious that it is an element of the Alexandria's bibliography.references list
and renames its fields to match the field of the wrapped Hayagriva's type, where the corresponding values are taken from.
In particular, it addresses the ambiguity of the prefix field (which wraps the BibliographyItem.first_field) -- it is not the Alexandria's own bibliography prefix.

@alyst
alyst force-pushed the tweak_plugin_types branch from 6c2fa72 to 201e72c Compare July 13, 2025 00:41

@ensko ensko left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Looks mostly good! I got a different binary when compiling the plugin. It's probably just a compiler version mismatch, but are you using the command from the Justfile?

https://github.com/SillyFreak/typst-alexandria/blob/ecd4bcbc18f5ad601ea9af07f4f72da49208ca15/Justfile#L28-L30

Just to make sure it's --release.

I will probably re-compile the WASM anyway once I merge, since it feels better to have this binary blob in my package compiled myself, but still wanted to make sure.

Comment thread src/hayagriva.typ Outdated
Comment thread src/lib.typ Outdated
alyst added 2 commits July 15, 2025 21:00
to match the wrapped Hayagriva type more closely
it also resolves the ambiguity of the `prefix` field
@alyst
alyst force-pushed the tweak_plugin_types branch from 201e72c to 7fd98ed Compare July 16, 2025 04:01
@alyst

alyst commented Jul 16, 2025

Copy link
Copy Markdown
Contributor Author

@SillyFreak Thank you, I've addressed your comments, and the tests are passing now!

@ensko
ensko merged commit af4aef6 into ensko:main Jul 16, 2025
2 checks passed
@ensko

ensko commented Jul 16, 2025

Copy link
Copy Markdown
Owner

Thanks a lot :)

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