typst / typst/typst

Using MLA bibliography format causes block #quote with bibliography entry label in attribution field to display empty parenthesis

Open
#6,860 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bibliography bug model
Dominant language
Rust
Stars
56.1k
Forks
1.7k
Avg merge
3d 10h
Merged PRs (30d)
22

Description

When using the "mla" style for #bibliography, using a label from a bibliography entry for the #quote function's attribution field causes empty parenthesis to be display. A fix would be to not display parenthesis. I am unaware of the underlying implementation but I assume that inserting parenthesis could be changed to be controlled by whether the style format renders dates for quotations (information that already be available/present as the #cite function correctly chooses to render dates or not)


Below are images comparing between "mla" and "apa" style using the #cite function first, followed by #quote

Here is an example of using the "mla" style, please note that not displaying the date is correct for MLA formatted quotations
MLA Style


And here is an example of using the "apa" style
APA Style

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the MLA and APA examples using #bibliography, #cite, and #quote, focusing on an entry label supplied as the attribution. Trace how quotation attribution formatting differs from citation formatting. Done means MLA quotations with labels that render no date no longer show empty parentheses, while APA behavior remains correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.