We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d5e352 commit e8581d0Copy full SHA for e8581d0
src/shared/containers/challenge-detail/index.jsx
@@ -128,7 +128,11 @@ class ChallengeDetailPageContainer extends React.Component {
128
129
let description = challenge.introduction || challenge.detailedRequirements;
130
description = description ? description.slice(0, 256) : '';
131
- description = htmlToText.fromString(description, { wordwrap: false });
+ description = htmlToText.fromString(description, {
132
+ singleNewLineParagraphs: true,
133
+ wordwrap: false,
134
+ });
135
+ description = description.replace(/\n/g, ' ');
136
137
const results = resultsLoadedForChallengeId === _.toString(challengeId)
138
? this.props.results : null;
0 commit comments