Skip to content

Commit

Permalink
fix(theme): add more tag names to inline element set (#8190)
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena authored and slorber committed Oct 28, 2022
1 parent 38e65f4 commit d1bf80e
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions packages/docusaurus-theme-classic/src/theme/MDXComponents/Code.tsx
Expand Up @@ -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) =>
Expand Down

0 comments on commit d1bf80e

Please sign in to comment.