Skip to content

Commit

Permalink
fix: add markdown description back
Browse files Browse the repository at this point in the history
  • Loading branch information
aswanson-nr committed Sep 15, 2021
1 parent 191b7a8 commit 7e6d628
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions src/templates/QuickstartDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,22 @@ import {
} from '../data/constants';
import QuickstartOverview from '../components/quickstarts/QuickstartOverview';

const allowedElements = [
'h1',
'h2',
'h3',
'ol',
'ul',
'li',
'p',
'blockquote',
'code',
'a',
'strong',
'em',
'hr',
];

const QuickstartDetails = ({ data, location }) => {
const quickstart = data.quickstarts;
const quickstartUrl = quickstart.packUrl || QUICKSTARTS_REPO;
Expand Down Expand Up @@ -132,13 +148,15 @@ const QuickstartDetails = ({ data, location }) => {
/>
)}
{quickstart.description && (
<p
<Markdown
skipHtml
allowedElements={allowedElements}
css={css`
grid-area: desc;
`}
>
{quickstart.description}
</p>
</Markdown>
)}
<div
css={css`
Expand Down

0 comments on commit 7e6d628

Please sign in to comment.