Skip to content
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

Fix: Render markdown correctly for short descriptions #6683

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added babel-jest
Empty file.
Empty file added chokidar
Empty file.
4 changes: 3 additions & 1 deletion frontend/src/components/projectCard/projectCard.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import ReactMarkdown from 'react-markdown';
import { useState } from 'react';
import { FormattedMessage } from 'react-intl';
import { Link } from 'react-router-dom';
Expand Down Expand Up @@ -126,7 +127,8 @@ export function ProjectCard({
</h3>
<div className="tc f6">
<div className="w-100 tl pr2 f7 blue-grey dib mb2 project-desc">
{shortDescription} {campaignTag ? ' · ' + campaignTag : ''}
<ReactMarkdown>{shortDescription}</ReactMarkdown>
{campaignTag ? ' · ' + campaignTag : ''}
</div>
</div>
</div>
Expand Down
Empty file added [email protected]
Empty file.
Empty file added webpack-dev-server
Empty file.
Loading