Skip to content

Commit

Permalink
added export of twitter block
Browse files Browse the repository at this point in the history
  • Loading branch information
iskaktoltay committed Oct 28, 2024
1 parent 298c93c commit 89b844a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/packages/app/utils/blocks-to-markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ function convertBlockToHtml(
return `<p>![${block.props.name}](${block.props.url} "width=${block.props.width}")</p>`
case 'file':
return `<p>[${block.props.name}](${block.props.url} "size=${block.props.size}")</p>`
case 'web-embed':
return `<p>[[tweet(${block.props.url})]]</p>`
case 'math' || 'equation':
return `<p>$$${contentHtml}$$</p>`
default:
Expand Down

0 comments on commit 89b844a

Please sign in to comment.