(block: DeepnoteBlock, jupyterCellType: 'code' | 'markdown', content: string)
| 188 | } |
| 189 | |
| 190 | function getSourceForBlock(block: DeepnoteBlock, jupyterCellType: 'code' | 'markdown', content: string): string { |
| 191 | if (jupyterCellType === 'markdown') { |
| 192 | return createMarkdown(block) |
| 193 | } |
| 194 | |
| 195 | if (block.type === 'code') { |
| 196 | return content |
| 197 | } |
| 198 | |
| 199 | return createPythonCode(block) |
| 200 | } |
| 201 | |
| 202 | function convertBlockTypeToJupyter(blockType: string): 'code' | 'markdown' { |
| 203 | return isMarkdownBlockType(blockType) ? 'markdown' : 'code' |
no test coverage detected