From e90cc2b6397d2a73b044263338b37dc85dd9b425 Mon Sep 17 00:00:00 2001 From: syy11cn Date: Mon, 30 May 2022 15:20:55 +0800 Subject: [PATCH] feat(core): add new paragraph style --- packages/core/src/config.ts | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/packages/core/src/config.ts b/packages/core/src/config.ts index f53653a..209bbed 100644 --- a/packages/core/src/config.ts +++ b/packages/core/src/config.ts @@ -19,9 +19,6 @@ export const defaultConfig: IMarkdownReportConfig = { }, }, paragraph: { - indent: { - firstLine: ptToTwip(24), - }, spacing: { before: lineHeightTimesToNumber(0.5), after: lineHeightTimesToNumber(0.5), @@ -30,6 +27,17 @@ export const defaultConfig: IMarkdownReportConfig = { alignment: AlignmentType.JUSTIFIED, }, }, + // Paragraph. + { + id: StyleId.p, + name: StyleName.p, + basedOn: StyleId.normal, + paragraph: { + indent: { + firstLine: ptToTwip(24), + }, + }, + }, // Image. { id: StyleId.image, @@ -106,6 +114,23 @@ export const defaultConfig: IMarkdownReportConfig = { }, }, }, + // Table. + { + id: StyleId.table, + name: StyleName.table, + basedOn: StyleId.normal, + run: {}, + paragraph: { + indent: { + firstLine: 0, + }, + spacing: { + beforeAutoSpacing: true, + afterAutoSpacing: true, + }, + alignment: AlignmentType.CENTER, + }, + }, // Heading 1. { id: StyleId.h1,