reiji-h 2 лет назад
Родитель
Сommit
df6788a9e1

+ 1 - 1
apps/app/src/components/ReactMarkdownComponents/SlideViewer.tsx

@@ -4,7 +4,7 @@ import { MARP_CONTAINER_CLASS_NAME } from '@growi/presentation';
 import dynamic from 'next/dynamic';
 import dynamic from 'next/dynamic';
 import { ReactMarkdownOptions } from 'react-markdown/lib/react-markdown';
 import { ReactMarkdownOptions } from 'react-markdown/lib/react-markdown';
 
 
-import { usePresentationViewOptions } from './SlideViewerRenderer';
+import { usePresentationViewOptions } from '~/stores/slide-viewer-renderer';
 
 
 
 
 const Slides = dynamic(() => import('@growi/presentation').then(mod => mod.Slides), { ssr: false });
 const Slides = dynamic(() => import('@growi/presentation').then(mod => mod.Slides), { ssr: false });

+ 0 - 0
apps/app/src/components/ReactMarkdownComponents/SlideViewerRenderer.tsx → apps/app/src/stores/slide-viewer-renderer.ts


+ 1 - 2
packages/presentation/src/services/renderer/slides.ts

@@ -1,4 +1,3 @@
-
 import type { Schema as SanitizeOption } from 'hast-util-sanitize';
 import type { Schema as SanitizeOption } from 'hast-util-sanitize';
 import type { Root } from 'mdast';
 import type { Root } from 'mdast';
 import { frontmatterToMarkdown } from 'mdast-util-frontmatter';
 import { frontmatterToMarkdown } from 'mdast-util-frontmatter';
@@ -42,7 +41,7 @@ const rewriteNode = (tree: Node, node: Node) => {
       }
       }
       catch (err) {
       catch (err) {
         node.type = 'text';
         node.type = 'text';
-        node.value = ' ';
+        node.value = '';
       }
       }
       finally {
       finally {
         node.children = tmp;
         node.children = tmp;