Skip to content

Commit

Permalink
fix(docusaurus-theme): re-add the markdown class name and fix `data…
Browse files Browse the repository at this point in the history
…-search-children` usage
  • Loading branch information
tkajtoch committed Oct 23, 2024
1 parent 4a36358 commit 88e40f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default function DocItemContent({ children }: Props): JSX.Element {
const styles = useEuiMemoizedStyles(getContentStyles);

return (
<div className={clsx(ThemeClassNames.docs.docMarkdown)}>
<div className={clsx(ThemeClassNames.docs.docMarkdown, 'markdown')}>
{syntheticTitle && (
<>
<header css={styles.header}>
Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus-theme/src/theme/MDXContent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import type { WrapperProps } from '@docusaurus/types';
type Props = WrapperProps<typeof MDXContentType>;

const MDXContent = (props: Props): JSX.Element => (
<div data-search-children="">
<div data-search-children={true}>
<OriginalMDXContent {...props} />
</div>
);
Expand Down

0 comments on commit 88e40f6

Please sign in to comment.