From 84bdbac150d5f9f65d5eda19c0f2bc7575ed4ce1 Mon Sep 17 00:00:00 2001 From: suncryptjustice Date: Wed, 16 Nov 2022 08:33:51 +0300 Subject: [PATCH] feat: add support converting notion quotes to markdown blockquote --- source/markdown.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/markdown.ts b/source/markdown.ts index ea5d06c..db879aa 100644 --- a/source/markdown.ts +++ b/source/markdown.ts @@ -183,6 +183,9 @@ export function parse(block: Block, indent = ''): string | null { return `### ${texts(block.heading_3.rich_text)}\n`; case 'paragraph': return `${append(texts(block.paragraph.rich_text))}\n`; + case 'quote': { + return `> ${texts(block.quote.rich_text)}`; + } case 'bulleted_list_item': return indent + append(`* ${texts(block.bulleted_list_item.rich_text)}`); case 'numbered_list_item':