We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When the level is greater than 0, the instance prop is ignored
Try with this example
const doc = new Document({ numbering: { config: [ { reference: 'ref1', levels: [ { level: 0, format: LevelFormat.DECIMAL, text: '%1' }, { level: 1, format: LevelFormat.DECIMAL, text: '%1.%2' }, { level: 2, format: LevelFormat.DECIMAL, text: '%1.%2.%3' } ] }, { reference: 'ref2', levels: [ { level: 0, format: LevelFormat.DECIMAL, text: '%1' }, { level: 1, format: LevelFormat.DECIMAL, text: '%1.%2' }, { level: 2, format: LevelFormat.DECIMAL, text: '%1.%2.%3' } ] } ] }, sections: [ { children: [ new Paragraph({ text: 'REF1 - inst:0 - lvl:1', numbering: { reference: 'ref1', instance: 0, level: 1 } }), new Paragraph({ text: 'REF1 - inst:0 - lvl:1', numbering: { reference: 'ref1', instance: 0, level: 1 } }), new Paragraph({ text: 'REF1 - inst:1 - lvl:1', numbering: { reference: 'ref1', instance: 1, level: 1 } }), new Paragraph({ text: 'REF1 - inst:1 - lvl:1', numbering: { reference: 'ref1', instance: 1, level: 1 } }), new Paragraph({ text: 'REF2 - inst:0 - lvl:1', numbering: { reference: 'ref2', instance: 0, level: 1 } }), new Paragraph({ text: 'REF2 - inst:0 - lvl:1', numbering: { reference: 'ref2', instance: 0, level: 1 } }) ] } ] });
Current resulting document:
Expected resulting document:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When the level is greater than 0, the instance prop is ignored
Try with this example
Current resulting document:
Expected resulting document:
The text was updated successfully, but these errors were encountered: