From 7e6d62882cbe5f0baac57bb0a5b05abce1cd76d5 Mon Sep 17 00:00:00 2001 From: aswanson-nr Date: Wed, 15 Sep 2021 13:22:07 -0700 Subject: [PATCH] fix: add markdown description back --- src/templates/QuickstartDetails.js | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/src/templates/QuickstartDetails.js b/src/templates/QuickstartDetails.js index e0c0726a5..943963c2c 100644 --- a/src/templates/QuickstartDetails.js +++ b/src/templates/QuickstartDetails.js @@ -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; @@ -132,13 +148,15 @@ const QuickstartDetails = ({ data, location }) => { /> )} {quickstart.description && ( -

{quickstart.description} -

+ )}