From 6d7fa293d0fe2b7a595a058b7259bff69062bbde Mon Sep 17 00:00:00 2001 From: iskaktoltay Date: Mon, 28 Oct 2024 11:52:57 +0500 Subject: [PATCH] added export of twitter block --- frontend/packages/app/utils/blocks-to-markdown.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/packages/app/utils/blocks-to-markdown.ts b/frontend/packages/app/utils/blocks-to-markdown.ts index 7a32009a0..4046e629c 100644 --- a/frontend/packages/app/utils/blocks-to-markdown.ts +++ b/frontend/packages/app/utils/blocks-to-markdown.ts @@ -87,6 +87,8 @@ function convertBlockToHtml( return `

![${block.props.name}](${block.props.url} "width=${block.props.width}")

` case 'file': return `

[${block.props.name}](${block.props.url} "size=${block.props.size}")

` + case 'web-embed': + return `

[[tweet(${block.props.url})]]

` case 'math' || 'equation': return `

$$${contentHtml}$$

` default: