feat(core): add list style

This commit is contained in:
syy11cn 2022-05-30 00:32:40 +08:00
parent 6e4b1e15a0
commit 4042f292cc
1 changed files with 16 additions and 3 deletions

View File

@ -23,8 +23,8 @@ export const defaultConfig: IMarkdownReportConfig = {
firstLine: ptToTwip(24), firstLine: ptToTwip(24),
}, },
spacing: { spacing: {
before: 120, before: lineHeightTimesToNumber(0.5),
after: 120, after: lineHeightTimesToNumber(0.5),
line: lineHeightTimesToNumber(1.5), line: lineHeightTimesToNumber(1.5),
}, },
alignment: AlignmentType.JUSTIFIED, alignment: AlignmentType.JUSTIFIED,
@ -92,6 +92,20 @@ export const defaultConfig: IMarkdownReportConfig = {
}, },
}, },
}, },
// List.
{
id: StyleId.list,
name: StyleName.list,
basedOn: StyleId.normal,
paragraph: {
indent: {
firstLine: 0,
},
spacing: {
line: lineHeightTimesToNumber(1),
},
},
},
// Heading 1. // Heading 1.
{ {
id: StyleId.h1, id: StyleId.h1,
@ -107,7 +121,6 @@ export const defaultConfig: IMarkdownReportConfig = {
}, },
paragraph: { paragraph: {
spacing: { spacing: {
// before: ptToTwip(30),
after: ptToTwip(30), after: ptToTwip(30),
}, },
alignment: AlignmentType.CENTER, alignment: AlignmentType.CENTER,