diff --git a/package.json b/package.json index 2e1ee590a..fa1540705 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "react-dom": "^17.0.1", "react-helmet": "^6.1.0", "react-live": "^2.2.2", - "react-markdown": "^5.0.3", + "react-markdown": "^6.0.0", "react-middle-ellipsis": "^1.1.0", "react-shadow": "^18.6.1", "react-simple-code-editor": "^0.11.0", diff --git a/src/templates/ObservabilityPackDetails.js b/src/templates/ObservabilityPackDetails.js index ed38ef334..fd21af71a 100644 --- a/src/templates/ObservabilityPackDetails.js +++ b/src/templates/ObservabilityPackDetails.js @@ -15,6 +15,22 @@ import ImageGallery from '../components/ImageGallery'; import Intro from '../components/Intro'; import InstallButton from '../components/InstallButton'; import ImageSlider from '../components/ImageSlider'; +import Markdown from '../components/Markdown'; + +const allowedElements = [ + 'h1', + 'h2', + 'h3', + 'ol', + 'ul', + 'li', + 'p', + 'code', + 'a', + 'strong', + 'em', + 'hr', +]; const ObservabilityPackDetails = ({ data, location }) => { const pack = data.observabilityPacks; @@ -99,7 +115,9 @@ const ObservabilityPackDetails = ({ data, location }) => {

Description

-

{pack.description}

+ + {pack.description} +