Skip to content

Add support for --assignment-- sections in markdown#148

Open
adiprathapa wants to merge 1 commit intoopenzim:mainfrom
adiprathapa:feat/assignment-section-support
Open

Add support for --assignment-- sections in markdown#148
adiprathapa wants to merge 1 commit intoopenzim:mainfrom
adiprathapa:feat/assignment-section-support

Conversation

@adiprathapa
Copy link
Copy Markdown
Contributor

@adiprathapa adiprathapa commented Apr 5, 2026

Summary

  • Parses # --assignment-- sections from challenge markdown with a new assignment getter on the Challenge class
  • Renders assignment content in the instructions panel with an <hr> separator
  • Adds test fixture using freeCodeCamp challenge (review-recursion) and corresponding tests

Should close #88

Test plan

  • npx vitest run passes all tests
  • Challenges without --assignment-- render unchanged
  • Challenges with --assignment-- display the section below description/instructions

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 33.33%. Comparing base (7f59946) to head (4948b0c).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #148   +/-   ##
=======================================
  Coverage   33.33%   33.33%           
=======================================
  Files          11       11           
  Lines         477      477           
  Branches       92       92           
=======================================
  Hits          159      159           
  Misses        313      313           
  Partials        5        5           

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@adiprathapa adiprathapa force-pushed the feat/assignment-section-support branch from b000c98 to aa32143 Compare April 5, 2026 14:43
Copy link
Copy Markdown
Collaborator

@benoit74 benoit74 left a comment

Choose a reason for hiding this comment

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

Please add an entry in CHANGELOG.md

Copy link
Copy Markdown
Collaborator

@benoit74 benoit74 left a comment

Choose a reason for hiding this comment

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

LGTM, please squash your commits and I will merge.

@adiprathapa adiprathapa force-pushed the feat/assignment-section-support branch from 9a16413 to 4948b0c Compare April 7, 2026 13:17
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.

Add support for # --assignment-- sections in markdown

2 participants