Skip to content

Commit

Permalink
Support complex admonitions
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminleonard committed May 21, 2024
1 parent ec1fc87 commit 4b24cfa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/src/AsciiDoc/Admonition.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -29,6 +29,7 @@ const Admonition = ({ node }: { node: AdmonitionBlock }) => {
<div>
<Title text={node.title} />
{node.content && parse(node.content)}
<Content blocks={node.blocks} />
</div>
</div>
</div>
Expand Down

0 comments on commit 4b24cfa

Please sign in to comment.