Skip to content

Commit

Permalink
feat: display admonition without heading
Browse files Browse the repository at this point in the history
  • Loading branch information
andrmaz committed Apr 26, 2024
1 parent da2c0b4 commit 2099a9a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Expand Up @@ -50,7 +50,7 @@ export default function AdmonitionLayout(props: Props): JSX.Element {
const {type, icon, title, children, className} = props;
return (
<AdmonitionContainer type={type} className={className}>
<AdmonitionHeading title={title} icon={icon} />
{title || icon ? <AdmonitionHeading title={title} icon={icon} /> : null}
<AdmonitionContent>{children}</AdmonitionContent>
</AdmonitionContainer>
);
Expand Down
6 changes: 6 additions & 0 deletions website/_dogfooding/_pages tests/markdown-tests-mdx.mdx
Expand Up @@ -333,6 +333,12 @@ test

::::

:::

Admonition content without heading

:::

## Linking

This is a test page to see if Docusaurus Markdown features are working properly
Expand Down

0 comments on commit 2099a9a

Please sign in to comment.