Преглед изворни кода

avoid to create empty slide

reiji-h пре 2 година
родитељ
комит
2d3b2c10d7
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packages/presentation/src/services/renderer/extract-sections.ts

+ 1 - 1
packages/presentation/src/services/renderer/extract-sections.ts

@@ -62,7 +62,7 @@ export const remarkPlugin: Plugin<[ExtractSectionsPluginParams]> = (options) =>
       tree,
       startCondition,
       (node, index, parent: Parent) => {
-        if (parent == null || parent.type !== 'root') {
+        if (parent == null || parent.type !== 'root' || node.type === 'yaml') {
           return;
         }