Skip to contents

Recursively converts a JSON block and its children into a tiddler-compatible data.table.

Usage

json_block_to_tiddler(data, page_id, block_id = NA, ancestors = NA)

Arguments

data

A JSON object representing a block.

page_id

The ID of the page the block belongs to.

block_id

(Optional) The ID of the parent block.

ancestors

(Optional) A vector of ancestor block IDs.

Value

A data.table containing the block's metadata, content, and properties.