reiji-h 2 лет назад
Родитель
Сommit
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;
         }