Render markdown for description in software templates
Signed-off-by: Andy Tan <andytan@google.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-scaffolder': minor
|
||||
---
|
||||
|
||||
Render markdown for description in software templates
|
||||
@@ -45,7 +45,11 @@ import { generatePath } from 'react-router';
|
||||
import { rootRouteRef } from '../../routes';
|
||||
import { FavouriteTemplate } from '../FavouriteTemplate/FavouriteTemplate';
|
||||
|
||||
import { Button, ItemCardHeader } from '@backstage/core-components';
|
||||
import {
|
||||
Button,
|
||||
ItemCardHeader,
|
||||
MarkdownContent,
|
||||
} from '@backstage/core-components';
|
||||
import { useApi, useRouteRef } from '@backstage/core-plugin-api';
|
||||
|
||||
const useStyles = makeStyles(theme => ({
|
||||
@@ -175,7 +179,7 @@ export const TemplateCard = ({ template, deprecated }: TemplateCardProps) => {
|
||||
<Typography variant="body2" className={classes.label}>
|
||||
Description
|
||||
</Typography>
|
||||
{templateProps.description}
|
||||
<MarkdownContent content={templateProps.description} />
|
||||
</Box>
|
||||
<Box className={classes.box}>
|
||||
<Typography variant="body2" className={classes.label}>
|
||||
|
||||
Reference in New Issue
Block a user