|
|
@@ -1,6 +1,6 @@
|
|
|
import { Presentation as PresentationSubstance, type PresentationProps } from '@growi/presentation';
|
|
|
|
|
|
-import { parseSlideFrontmatter } from '../Page/markdown-slide-util-for-view';
|
|
|
+import { parseSlideFrontmatterInMarkdown } from '../Page/markdown-slide-util-for-view';
|
|
|
|
|
|
import '@growi/presentation/dist/style.css';
|
|
|
|
|
|
@@ -11,7 +11,7 @@ type Props = {
|
|
|
export const Presentation = (props: Props): JSX.Element => {
|
|
|
const { options, isEnabledMarp, children } = props;
|
|
|
|
|
|
- const [marp] = parseSlideFrontmatter(children ?? '');
|
|
|
+ const [marp] = parseSlideFrontmatterInMarkdown(children ?? '');
|
|
|
const hasMarpFlag = isEnabledMarp && marp;
|
|
|
|
|
|
return <PresentationSubstance options={options} hasMarpFlag={hasMarpFlag}>{children}</PresentationSubstance>;
|