- lists - own item type (
listType
):
{
ul: [
'item 1',
{text: 'item 2', listType: 'none'},
{text: 'item 3', listType: 'circle'}
]
}
- support for nesting text elements:
{
text: [
{ text: 'a better ' },
{ text: [{ text: 'some text ', bold: true}] },
{ text: 'independently' }
]
}
- ToC - custom style:
toc: {
title: {text: 'INDEX'},
textMargin: [0, 0, 0, 0],
textStyle: {italics: true},
numberStyle: {bold: true}
}
{
text: 'This is a header, using header style',
style: 'header',
tocItem: true,
tocStyle: {bold: true},
tocMargin: [0, 10, 0, 0]
},