Skip to content

feat: generate markdown - #63

Merged
njzjz merged 9 commits into
masterfrom
markdown
Aug 21, 2025
Merged

feat: generate markdown#63
njzjz merged 9 commits into
masterfrom
markdown

Conversation

@njzjz

@njzjz njzjz commented Jul 29, 2025

Copy link
Copy Markdown
Owner

Signed-off-by: Jinzhe Zeng jinzhe.zeng@ustc.edu.cn

Signed-off-by: Jinzhe Zeng <jinzhe.zeng@ustc.edu.cn>
@codecov

codecov Bot commented Jul 29, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 84.00000% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.10%. Comparing base (19c6863) to head (333c4c6).
⚠️ Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
wenxian/__main__.py 72.72% 3 Missing ⚠️
wenxian/reference.py 92.85% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #63      +/-   ##
==========================================
+ Coverage   91.96%   92.10%   +0.13%     
==========================================
  Files          13       13              
  Lines         498      519      +21     
==========================================
+ Hits          458      478      +20     
- Misses         40       41       +1     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@njzjz
njzjz requested a review from Copilot August 3, 2025 13:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds markdown generation capability to the wenxian reference management tool. The implementation provides a new markdown output format as an alternative to the existing BibTeX format.

  • Adds a markdown property to the Reference class that formats citations in markdown with DOI links and citation badges
  • Implements command-line support for markdown output via a new --output_type parameter
  • Updates file extension handling to automatically generate .md files for markdown output

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
wenxian/reference.py Adds markdown property that formats reference data as markdown with italicized journal names, DOI links, and citation badges
wenxian/main.py Adds output_type parameter and command-line argument to support markdown generation alongside existing BibTeX functionality

Comment thread wenxian/reference.py Outdated
Comment thread wenxian/reference.py Outdated
Comment thread wenxian/reference.py Outdated
Comment thread wenxian/__main__.py
njzjz and others added 8 commits August 3, 2025 21:48
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@ustc.edu.cn>
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@ustc.edu.cn>
@pull-request-size pull-request-size Bot added size/L and removed size/M labels Aug 21, 2025
@njzjz
njzjz merged commit f5655e0 into master Aug 21, 2025
8 of 9 checks passed
@njzjz
njzjz deleted the markdown branch August 21, 2025 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants