feat(core): add new paragraph style
This commit is contained in:
parent
6eeea40015
commit
e90cc2b639
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue