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

FIX: Not invalidating citation blocks with 0 citations #290

Merged
merged 3 commits into from
Jan 21, 2025
Merged

Conversation

shyamd
Copy link
Owner

@shyamd shyamd commented Jan 21, 2025

The code was not checking if the cite blocks were valid, resulting in any link being treated a a cite block with 0 citations. Eventually the link would be overwritten in the raw markdown. This ensures that doesn't happen anymore by ensuring the block isn't made. I also added in an integration test just in case .

This should fix #289

Copy link

codecov bot commented Jan 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.16%. Comparing base (fddf1c2) to head (4fe071a).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #290      +/-   ##
==========================================
+ Coverage   92.11%   92.16%   +0.04%     
==========================================
  Files           6        6              
  Lines         317      319       +2     
==========================================
+ Hits          292      294       +2     
  Misses         25       25              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@shyamd shyamd merged commit 26da333 into main Jan 21, 2025
14 checks passed
@shyamd shyamd deleted the bad_citations branch January 21, 2025 05:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bibtex makes the normal link in mkdocs not working.
1 participant