(&self, block_id: &str)
| 214 | } |
| 215 | |
| 216 | pub fn get_block_data(&self, block_id: &str) -> Option<(BlockType, HashMap<String, Value>)> { |
| 217 | let block = self.get_block(block_id)?; |
| 218 | let block_type = BlockType::from_block_ty(&block.ty); |
| 219 | Some((block_type, block.data)) |
| 220 | } |
| 221 | |
| 222 | /// Get the children of the block with the given id. |
| 223 | pub fn get_block_children_ids(&self, block_id: &str) -> Vec<String> { |