diff --git a/packages/docusaurus-theme-classic/src/theme/MDXComponents/Code.tsx b/packages/docusaurus-theme-classic/src/theme/MDXComponents/Code.tsx index c1977000be7c..6bf8f730eb86 100644 --- a/packages/docusaurus-theme-classic/src/theme/MDXComponents/Code.tsx +++ b/packages/docusaurus-theme-classic/src/theme/MDXComponents/Code.tsx @@ -13,15 +13,35 @@ import type {Props} from '@theme/MDXComponents/Code'; export default function MDXCode(props: Props): JSX.Element { const inlineElements: (string | undefined)[] = [ 'a', + 'abbr', 'b', - 'big', + 'br', + 'button', + 'cite', + 'code', + 'del', + 'dfn', + 'em', 'i', + 'img', + 'input', + 'ins', + 'kbd', + 'label', + 'object', + 'output', + 'q', + 'ruby', + 's', + 'small', 'span', - 'em', 'strong', - 'sup', 'sub', - 'small', + 'sup', + 'time', + 'u', + 'var', + 'wbr', ]; const shouldBeInline = React.Children.toArray(props.children).every( (el) =>