From 4042f292cc0319fb350d31316e63a18ffdd54422 Mon Sep 17 00:00:00 2001 From: syy11cn Date: Mon, 30 May 2022 00:32:40 +0800 Subject: [PATCH] feat(core): add list style --- packages/core/src/config.ts | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/packages/core/src/config.ts b/packages/core/src/config.ts index 4c16a4a..f53653a 100644 --- a/packages/core/src/config.ts +++ b/packages/core/src/config.ts @@ -23,8 +23,8 @@ export const defaultConfig: IMarkdownReportConfig = { firstLine: ptToTwip(24), }, spacing: { - before: 120, - after: 120, + before: lineHeightTimesToNumber(0.5), + after: lineHeightTimesToNumber(0.5), line: lineHeightTimesToNumber(1.5), }, 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. { id: StyleId.h1, @@ -107,7 +121,6 @@ export const defaultConfig: IMarkdownReportConfig = { }, paragraph: { spacing: { - // before: ptToTwip(30), after: ptToTwip(30), }, alignment: AlignmentType.CENTER,