From a613e5761551fbf84c8c8e7487af1742a01cd6a9 Mon Sep 17 00:00:00 2001 From: DrMint <29893320+DrMint@users.noreply.github.com> Date: Sun, 20 Aug 2023 11:50:11 +0200 Subject: [PATCH] Simplify recursive block --- src/collections/Contents/Blocks/blocks.ts | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/collections/Contents/Blocks/blocks.ts b/src/collections/Contents/Blocks/blocks.ts index 0e4f4c8..4f19da1 100644 --- a/src/collections/Contents/Blocks/blocks.ts +++ b/src/collections/Contents/Blocks/blocks.ts @@ -1,9 +1,7 @@ -import { cueBlock } from "./cueBlock"; +import { BlocksConfig, generateBlocks } from "../../../utils/recursiveBlocks"; +import { quoteBlock } from "./quoteBlock"; import { textBlock } from "./textBlock"; import { transcriptBlock } from "./transcriptBlock"; -import { lineBlock } from "./lineBlock"; -import { quoteBlock } from "./quoteBlock"; -import { BlocksConfig, generateBlocks } from "../../../utils/recursiveBlocks"; const enum BlockName { Text = "Text", @@ -11,8 +9,6 @@ const enum BlockName { Tabs = "Tabs", Tab = "Tab", Transcript = "Transcript", - Line = "Line", - Cue = "Cue", Quote = "Quote", } @@ -76,14 +72,6 @@ const blocksConfig: BlocksConfig = { root: true, block: transcriptBlock, }, - Cue: { - root: false, - block: cueBlock, - }, - Line: { - root: false, - block: lineBlock, - }, Quote: { root: true, block: quoteBlock,