From 4b24cfa806e5ed01fdd759141586cbf7dd3ebae0 Mon Sep 17 00:00:00 2001 From: Benjamin Leonard Date: Tue, 21 May 2024 13:14:20 +0100 Subject: [PATCH] Support complex admonitions --- components/src/AsciiDoc/Admonition.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/src/AsciiDoc/Admonition.tsx b/components/src/AsciiDoc/Admonition.tsx index b6845e4..88c892a 100644 --- a/components/src/AsciiDoc/Admonition.tsx +++ b/components/src/AsciiDoc/Admonition.tsx @@ -5,7 +5,7 @@ * * Copyright Oxide Computer Company */ -import { type AdmonitionBlock, Title } from '@oxide/react-asciidoc' +import { type AdmonitionBlock, Content, Title } from '@oxide/react-asciidoc' import parse from 'html-react-parser' import { titleCase } from '../utils' @@ -29,6 +29,7 @@ const Admonition = ({ node }: { node: AdmonitionBlock }) => {
{node.content && parse(node.content)} + <Content blocks={node.blocks} /> </div> </div> </div>