-
Notifications
You must be signed in to change notification settings - Fork 3
feat: add react-markdown and remark-gfm dependencies; refactor Description component to use MD for rendering #1613
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
base: main
Are you sure you want to change the base?
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found. |
TravellerOnTheRun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost good to go
2 things we discussed on the daily:
|
…ption component to use MD for rendering
38e32fd to
b3ed6cc
Compare
Done |
TravellerOnTheRun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As the markdown is a new feature and we did not anticipate these issues, I give it a pass, but I added some things to consider.
|
|
||
| return ( | ||
| <> | ||
| {!isExpanded && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a temporary solution? Cause it will lose the animation going from preview text to full
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe write a TODO here as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested it - animation is still there 😁
Ticket
DAO-1967
Screenshots
What
MDcomponent that wrapsreact-markdownwith project-specific styling and configuration. The component uses existing Typography components (Header, Paragraph, Link) to maintain design system consistency.Descriptioncomponent to eliminate redundantisDesktopchecks and simplified the rendering logic with early returns.Why
Previously, proposal descriptions were rendered as plain text, limiting formatting options and making longer technical proposals harder to read.
Also Tally supports MD, so we can render proposals created in Tally
With Markdown support, proposal creators can now use:
This improves readability and allows for more professional, well-structured proposals without compromising security (images are blocked by default).