Skip to content

RFC:Nested combinations  #93

@Fi2zz

Description

@Fi2zz
let delta = [
	{
		attributes: {
			type: "bullet-list-container",
		},
		children: [
			{ insert: "Child 1" },
			{ insert: "Child 2" },
			{
				insert: "Child 3",
				attributes: { type: "bullet-list-container" },
				children: [{ insert: "Sub Child 1" }, { insert: "Sub Child 2" }],
			},
		],
	},
];

// output  to

/**


    <ul>
        <li>Child 1</li>
        <li>Child 2</li>
        <li>Child 3
                <ul>
                    <li>Sub Child 1</li>
                    <li>Sub Child 2</li>
                </ul>
        </li>

    </ul>



 */

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions