feat(core): add new paragraph style

This commit is contained in:
syy11cn 2022-05-30 15:20:55 +08:00
parent 6eeea40015
commit e90cc2b639
1 changed files with 28 additions and 3 deletions

View File

@ -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,