Nesting array based on level
问题 0: {content: "Heading 1 2 3 4 5", level: 2, anchor: "heading-1-2-3-4-5", className: "testtest", fontWeight: "", …} 1: {content: "Heading 2", level: 2, anchor: "heading-2", fontWeight: "", textTransform: "", …} 2: {content: "Inner Heading", level: 2, anchor: "inner-heading", fontWeight: "", textTransform: "", …} 3: {content: "Heading Level 3", level: 3, anchor: "heading-level-3", fontWeight: "", textTransform: "", …} 4: {content: "Heading Level 3-2", level: 3, fontWeight: "", textTransform: ""