Skip to content

feat: render sanitized markdown descriptions#33

Open
IsaacOdeimor wants to merge 1 commit into
CodeBountyOrg:mainfrom
IsaacOdeimor:fix-markdown-task-descriptions
Open

feat: render sanitized markdown descriptions#33
IsaacOdeimor wants to merge 1 commit into
CodeBountyOrg:mainfrom
IsaacOdeimor:fix-markdown-task-descriptions

Conversation

@IsaacOdeimor
Copy link
Copy Markdown

Summary

  • Adds optional multi-line task descriptions in the task form and data model.
  • Renders description markdown for bold, italic, inline code, links, and line breaks.
  • Sanitizes rendered output by escaping HTML and allowing only http, https, and mailto links.
  • Opens rendered links in a new tab with rel="noopener noreferrer".
  • Persists descriptions through the authenticated task API.

Verification

  • node --test => 5 passed
  • npm run lint => passed
  • node --check src/markdown.js => passed
  • node --check src/app.js => passed

Note: npm test timed out in this Windows shell, but the script body is node --test, which passed directly.

Closes #3.

@codebounty-dev-bot
Copy link
Copy Markdown

⚠️ Attention Sponsor: This PR was submitted by @IsaacOdeimor who has not applied for this bounty (#3). Please verify if you want to consider this contribution.

👋 Hey @IsaacOdeimor: This issue has a bounty on CodeBounty! To be eligible for the reward, please sign up on CodeBounty and apply for this bounty. If you apply, your PR will be automatically associated with your application.

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.

Fix markdown rendering in task descriptions

2 participants