Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
8ed07701ae
commit
bd0cf78ea4
@@ -102,9 +102,10 @@ function run(text: string, opts: { bold?: boolean; italic?: boolean; underline?:
|
||||
});
|
||||
}
|
||||
|
||||
function p(text: string, opts: { bold?: boolean; align?: (typeof AlignmentType)[keyof typeof AlignmentType] } = {}) {
|
||||
function p(text: string, opts: { bold?: boolean; align?: (typeof AlignmentType)[keyof typeof AlignmentType]; indent?: number } = {}) {
|
||||
return new Paragraph({
|
||||
alignment: opts.align,
|
||||
indent: opts.indent ? { left: opts.indent } : undefined,
|
||||
children: [run(text, { bold: opts.bold })],
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user