-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
💄 render descriptionShort as markdown, fix DoD link display #2958
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -822,7 +822,12 @@ const KeyDataTable = (props: { | |
<div className="key-data__title key-data-description-short__title"> | ||
{datapageData.title} | ||
</div> | ||
<div>{datapageData.descriptionShort}</div> | ||
<div> | ||
<SimpleMarkdownText | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The new renderer by default wraps any text into a paragraph which adds unwanted vertical space. I added an option called <SimpleMarkdownText text={...} useParagraphs={false} /> There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Or, alternatively, if we expect There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good to know! The ETL guidelines say that this should be a single paragraph so I'll go with useParagraphs=false. Thank you! |
||
text={datapageData.descriptionShort} | ||
useParagraphs={false} | ||
/> | ||
</div> | ||
</div> | ||
)} | ||
{source && ( | ||
|
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.
@sophiamersmann should we add the useParagraphs stanca here as well then?
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.
Since the old code wraps descriptionShort in a paragraph as well, I would leave it as is here.