Merge pull request #5285 from o-farooq/master

feat(techradar-plugin): add markdown support in techradar entry
This commit is contained in:
Ben Lambert
2021-04-13 13:26:11 +02:00
committed by GitHub
3 changed files with 10 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-tech-radar': patch
---
Add markdown support for tech radar entry description
@@ -19,6 +19,7 @@ import Dialog from '@material-ui/core/Dialog';
import DialogTitle from '@material-ui/core/DialogTitle';
import { Button, DialogActions, DialogContent } from '@material-ui/core';
import LinkIcon from '@material-ui/icons/Link';
import { MarkdownContent } from '@backstage/core';
export type Props = {
open: boolean;
@@ -43,7 +44,9 @@ const RadarDescription = (props: Props): JSX.Element => {
<DialogTitle data-testid="radar-description-dialog-title">
{title}
</DialogTitle>
<DialogContent dividers>{description}</DialogContent>
<DialogContent dividers>
<MarkdownContent content={description} />
</DialogContent>
{url && (
<DialogActions>
<Button
+1 -1
View File
@@ -50,7 +50,7 @@ entries.push({
title: 'JavaScript',
quadrant: 'languages',
description:
'Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum',
'Excepteur **sint** occaecat *cupidatat* non proident, sunt in culpa qui officia deserunt mollit anim id est laborum',
});
entries.push({
timeline: [