feat: render rich OneNote pages and resources
This commit is contained in:
@@ -80,7 +80,24 @@ class SuccessfulParserWorker implements WorkerPort {
|
||||
page: {
|
||||
...page,
|
||||
id: message.pageId,
|
||||
blocks: [{ kind: 'text', text: page.text }],
|
||||
blocks: [
|
||||
{
|
||||
kind: 'text',
|
||||
id: 'text-1',
|
||||
sourceText: page.text,
|
||||
text: page.text,
|
||||
runs: [
|
||||
{
|
||||
start: 0,
|
||||
end: page.text.length,
|
||||
text: page.text,
|
||||
style: {},
|
||||
},
|
||||
],
|
||||
paragraphStyle: {},
|
||||
layout: {},
|
||||
},
|
||||
],
|
||||
diagnostics: [],
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user