feat: render OneNote notebook hierarchy

This commit is contained in:
2026-07-22 19:05:49 +02:00
parent d282b832ac
commit 670310ea9e
14 changed files with 887 additions and 103 deletions

View File

@@ -84,6 +84,23 @@ describe('pinned Joplin .onepkg fixture', () => {
(section) => section.parseStatus === 'not-requested'
)
).toBe(true);
expect(opened.package.tree).toMatchObject({
interpreted: true,
tocPath: 'Open Notebook.onetoc2',
nodes: [
{ kind: 'section', displayName: 'Tést!' },
{ kind: 'section', displayName: 'Another section' },
{
kind: 'section-group',
displayName: 'Section group',
children: [
{ kind: 'section', displayName: 'A' },
{ kind: 'section', displayName: 'B' },
],
},
{ kind: 'section', displayName: '⅀⸨ Unicode ⸩' },
],
});
});
it('opens and parses all five packaged sections end to end', async () => {