typst / hayagriva

Rusty bibliography management.
Apache License 2.0
289 stars 44 forks source link

Fix affixes with layout tag #177

Open skissue opened 1 month ago

skissue commented 1 month ago

Fixes both prefixes and suffixes on the <layout> tag, which were not added before. I'm not sure if this is the correct way to implement this, I only took a cursory look through the code, but a quick test showed that it worked for the Chicago Manual of Style file.

Before:

Ungard-Sargon, Batya. “She Swoons to Conquer.” Edited by Pam Weintraub. Aeon (blog), September 25, 2015. https://aeon.co/essays/can-you-enjoy-romance-fiction-and-be-a-feminist

After:

Ungard-Sargon, Batya. “She Swoons to Conquer.” Edited by Pam Weintraub. Aeon (blog), September 25, 2015. https://aeon.co/essays/can-you-enjoy-romance-fiction-and-be-a-feminist.

Possibly addresses #107

skissue commented 1 month ago

After some more experimentation, this PR (unsurprisingly) seems to break more than it fixes. Will take a deeper look at the code.