Skip to content

Fix markdown rendering in task descriptions#25

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

Fix markdown rendering in task descriptions#25
Thanhdn1984 wants to merge 1 commit into
CodeBountyOrg:mainfrom
Thanhdn1984:fix/markdown-task-descriptions

Conversation

@Thanhdn1984
Copy link
Copy Markdown

Summary

  • add optional multi-line task descriptions
  • render a safe subset of markdown (bold, italic, code, links)
  • sanitize rendering by building DOM nodes directly and allowing only http/https/mailto links
  • open rendered links in a new tab with rel="noopener noreferrer"
  • persist descriptions through the existing task API

Tests

  • npm test
  • npm run lint

Closes #3

@codebounty-dev-bot
Copy link
Copy Markdown

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

👋 Hey @Thanhdn1984: 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