feat(core): add list style
This commit is contained in:
parent
6e4b1e15a0
commit
4042f292cc
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue