* Get the content of a block for comparison.
(block: DeepnoteBlock)
| 284 | * Get the content of a block for comparison. |
| 285 | */ |
| 286 | function getBlockContent(block: DeepnoteBlock): string | undefined { |
| 287 | if ('content' in block && typeof block.content === 'string') { |
| 288 | return block.content |
| 289 | } |
| 290 | return undefined |
| 291 | } |
| 292 | |
| 293 | /** |
| 294 | * Output diff as JSON. |