diff --git a/packages/docusaurus-theme-classic/src/theme/Admonition/Layout/index.tsx b/packages/docusaurus-theme-classic/src/theme/Admonition/Layout/index.tsx index 7bdda31bc386..eafe0400c626 100644 --- a/packages/docusaurus-theme-classic/src/theme/Admonition/Layout/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/Admonition/Layout/index.tsx @@ -50,7 +50,7 @@ export default function AdmonitionLayout(props: Props): JSX.Element { const {type, icon, title, children, className} = props; return ( - + {title || icon ? : null} {children} ); diff --git a/website/_dogfooding/_pages tests/markdown-tests-mdx.mdx b/website/_dogfooding/_pages tests/markdown-tests-mdx.mdx index feaf146f059d..c14f1aa99a77 100644 --- a/website/_dogfooding/_pages tests/markdown-tests-mdx.mdx +++ b/website/_dogfooding/_pages tests/markdown-tests-mdx.mdx @@ -333,6 +333,12 @@ test :::: +::: + +Admonition content without heading + +::: + ## Linking This is a test page to see if Docusaurus Markdown features are working properly