-- lx-bundle:true

--- Small shared document representation for rendered previews
-- Format parsers own syntax while preview layout reads these plain tables
-- @module core.preview.dom

local dom = {}

--- Create an empty preview document tied to its source document
-- @param source table source document used for navigation and reloads
-- @return table document preview document
function dom.new(source)
	return {
		source = source,
		blocks = {},
	}
end

return dom
