@blocknote/xl-docx-exporter 0.42.3 → 0.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,12 +2,6 @@
2
2
  <w:document mc:Ignorable="w14 w15 wp14" xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex" xmlns:cx1="http://schemas.microsoft.com/office/drawing/2015/9/8/chartex" xmlns:cx2="http://schemas.microsoft.com/office/drawing/2015/10/21/chartex" xmlns:cx3="http://schemas.microsoft.com/office/drawing/2016/5/9/chartex" xmlns:cx4="http://schemas.microsoft.com/office/drawing/2016/5/10/chartex" xmlns:cx5="http://schemas.microsoft.com/office/drawing/2016/5/11/chartex" xmlns:cx6="http://schemas.microsoft.com/office/drawing/2016/5/12/chartex" xmlns:cx7="http://schemas.microsoft.com/office/drawing/2016/5/13/chartex" xmlns:cx8="http://schemas.microsoft.com/office/drawing/2016/5/14/chartex" xmlns:aink="http://schemas.microsoft.com/office/drawing/2016/ink" xmlns:am3d="http://schemas.microsoft.com/office/drawing/2017/model3d" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16sdtdh="http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex">
3
3
  <w:body>
4
4
  <w:p>
5
- <w:pPr>
6
- <w:pStyle w:val="Normal"/>
7
- <w:rPr>
8
- <w:rFonts w:ascii="Inter" w:cs="Inter" w:eastAsia="Inter" w:hAnsi="Inter"/>
9
- </w:rPr>
10
- </w:pPr>
11
5
  <w:r>
12
6
  <w:rPr>
13
7
  <w:i/>
@@ -26,12 +20,6 @@
26
20
  </w:r>
27
21
  </w:p>
28
22
  <w:p>
29
- <w:pPr>
30
- <w:pStyle w:val="Normal"/>
31
- <w:rPr>
32
- <w:rFonts w:ascii="Inter" w:cs="Inter" w:eastAsia="Inter" w:hAnsi="Inter"/>
33
- </w:rPr>
34
- </w:pPr>
35
23
  <w:r>
36
24
  <w:tab/>
37
25
  </w:r>
@@ -40,12 +28,6 @@
40
28
  </w:r>
41
29
  </w:p>
42
30
  <w:p>
43
- <w:pPr>
44
- <w:pStyle w:val="Normal"/>
45
- <w:rPr>
46
- <w:rFonts w:ascii="Inter" w:cs="Inter" w:eastAsia="Inter" w:hAnsi="Inter"/>
47
- </w:rPr>
48
- </w:pPr>
49
31
  <w:r>
50
32
  <w:tab/>
51
33
  </w:r>
@@ -58,11 +40,7 @@
58
40
  </w:p>
59
41
  <w:p>
60
42
  <w:pPr>
61
- <w:pStyle w:val="Normal"/>
62
- <w:shd w:color="fbe4e4" w:val="solid"/>
63
- <w:rPr>
64
- <w:rFonts w:ascii="Inter" w:cs="Inter" w:eastAsia="Inter" w:hAnsi="Inter"/>
65
- </w:rPr>
43
+ <w:shd w:fill="fbe4e4" w:val="clear"/>
66
44
  </w:pPr>
67
45
  <w:r>
68
46
  <w:rPr>
@@ -73,12 +51,6 @@
73
51
  </w:r>
74
52
  </w:p>
75
53
  <w:p>
76
- <w:pPr>
77
- <w:pStyle w:val="Normal"/>
78
- <w:rPr>
79
- <w:rFonts w:ascii="Inter" w:cs="Inter" w:eastAsia="Inter" w:hAnsi="Inter"/>
80
- </w:rPr>
81
- </w:pPr>
82
54
  <w:r>
83
55
  <w:t xml:space="preserve">Paragraph</w:t>
84
56
  </w:r>
@@ -102,11 +74,7 @@
102
74
  </w:p>
103
75
  <w:p>
104
76
  <w:pPr>
105
- <w:pStyle w:val="Normal"/>
106
77
  <w:jc w:val="distribute"/>
107
- <w:rPr>
108
- <w:rFonts w:ascii="Inter" w:cs="Inter" w:eastAsia="Inter" w:hAnsi="Inter"/>
109
- </w:rPr>
110
78
  </w:pPr>
111
79
  <w:r>
112
80
  <w:t xml:space="preserve">justified paragraph. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</w:t>
@@ -209,7 +177,7 @@
209
177
  <w:ilvl w:val="2"/>
210
178
  <w:numId w:val="3"/>
211
179
  </w:numPr>
212
- <w:shd w:color="fbe4e4" w:val="solid"/>
180
+ <w:shd w:fill="fbe4e4" w:val="clear"/>
213
181
  <w:jc w:val="right"/>
214
182
  <w:rPr>
215
183
  <w:color w:val="0b6e99"/>
@@ -226,7 +194,7 @@
226
194
  <w:ilvl w:val="2"/>
227
195
  <w:numId w:val="3"/>
228
196
  </w:numPr>
229
- <w:shd w:color="fbe4e4" w:val="solid"/>
197
+ <w:shd w:fill="fbe4e4" w:val="clear"/>
230
198
  <w:jc w:val="center"/>
231
199
  <w:rPr>
232
200
  <w:color w:val="0b6e99"/>
@@ -291,7 +259,7 @@
291
259
  <w:tr>
292
260
  <w:tc>
293
261
  <w:tcPr>
294
- <w:tcW w:type="dxa" w:w="150pt"/>
262
+ <w:tcW w:type="dxa" w:w="3000"/>
295
263
  <w:gridSpan w:val="1"/>
296
264
  </w:tcPr>
297
265
  <w:p>
@@ -324,7 +292,7 @@
324
292
  <w:tr>
325
293
  <w:tc>
326
294
  <w:tcPr>
327
- <w:tcW w:type="dxa" w:w="150pt"/>
295
+ <w:tcW w:type="dxa" w:w="3000"/>
328
296
  <w:gridSpan w:val="1"/>
329
297
  </w:tcPr>
330
298
  <w:p>
@@ -357,7 +325,7 @@
357
325
  <w:tr>
358
326
  <w:tc>
359
327
  <w:tcPr>
360
- <w:tcW w:type="dxa" w:w="150pt"/>
328
+ <w:tcW w:type="dxa" w:w="3000"/>
361
329
  <w:gridSpan w:val="1"/>
362
330
  </w:tcPr>
363
331
  <w:p>
@@ -529,14 +497,7 @@
529
497
  <w:t xml:space="preserve">From https://interactive-examples.mdn.mozilla.net/media/cc0-audio/t-rex-roar.mp3</w:t>
530
498
  </w:r>
531
499
  </w:p>
532
- <w:p>
533
- <w:pPr>
534
- <w:pStyle w:val="Normal"/>
535
- <w:rPr>
536
- <w:rFonts w:ascii="Inter" w:cs="Inter" w:eastAsia="Inter" w:hAnsi="Inter"/>
537
- </w:rPr>
538
- </w:pPr>
539
- </w:p>
500
+ <w:p/>
540
501
  <w:p>
541
502
  <w:hyperlink w:history="1" r:id="FAKE-ID">
542
503
  <w:r>
@@ -556,12 +517,6 @@
556
517
  </w:r>
557
518
  </w:p>
558
519
  <w:p>
559
- <w:pPr>
560
- <w:pStyle w:val="Normal"/>
561
- <w:rPr>
562
- <w:rFonts w:ascii="Inter" w:cs="Inter" w:eastAsia="Inter" w:hAnsi="Inter"/>
563
- </w:rPr>
564
- </w:pPr>
565
520
  <w:r>
566
521
  <w:rPr>
567
522
  <w:b/>
@@ -571,12 +526,6 @@
571
526
  </w:r>
572
527
  </w:p>
573
528
  <w:p>
574
- <w:pPr>
575
- <w:pStyle w:val="Normal"/>
576
- <w:rPr>
577
- <w:rFonts w:ascii="Inter" w:cs="Inter" w:eastAsia="Inter" w:hAnsi="Inter"/>
578
- </w:rPr>
579
- </w:pPr>
580
529
  <w:r>
581
530
  <w:rPr>
582
531
  <w:b/>
@@ -584,7 +533,7 @@
584
533
  <w:i/>
585
534
  <w:iCs/>
586
535
  <w:color w:val="e03e3e"/>
587
- <w:shd w:fill="ddebf1"/>
536
+ <w:shd w:fill="ddebf1" w:val="clear"/>
588
537
  </w:rPr>
589
538
  <w:t xml:space="preserve">Styled Text</w:t>
590
539
  </w:r>
@@ -721,8 +670,7 @@
721
670
  </w:tbl>
722
671
  <w:p>
723
672
  <w:pPr>
724
- <w:pStyle w:val="Codeblock"/>
725
- <w:shd w:fill="161616" w:color="161616" w:val="solid"/>
673
+ <w:pStyle w:val="SourceCode"/>
726
674
  </w:pPr>
727
675
  <w:r>
728
676
  <w:t xml:space="preserve">const helloWorld = (message) =&gt; {</w:t>
@@ -736,6 +684,21 @@
736
684
  <w:t xml:space="preserve">};</w:t>
737
685
  </w:r>
738
686
  </w:p>
687
+ <w:p>
688
+ <w:r>
689
+ <w:rPr>
690
+ <w:b/>
691
+ <w:bCs/>
692
+ </w:rPr>
693
+ <w:t xml:space="preserve">Some inline code: </w:t>
694
+ </w:r>
695
+ <w:r>
696
+ <w:rPr>
697
+ <w:rStyle w:val="VerbatimChar"/>
698
+ </w:rPr>
699
+ <w:t xml:space="preserve">var foo = &apos;bar&apos;;</w:t>
700
+ </w:r>
701
+ </w:p>
739
702
  <w:p>
740
703
  <w:pPr>
741
704
  <w:pBdr>
@@ -743,6 +706,14 @@
743
706
  </w:pBdr>
744
707
  </w:pPr>
745
708
  </w:p>
709
+ <w:p>
710
+ <w:pPr>
711
+ <w:pStyle w:val="BlockQuote"/>
712
+ </w:pPr>
713
+ <w:r>
714
+ <w:t xml:space="preserve">All those moments will be lost in time, like tears in rain.</w:t>
715
+ </w:r>
716
+ </w:p>
746
717
  <w:sectPr>
747
718
  <w:pgSz w:w="11906" w:h="16838" w:orient="portrait"/>
748
719
  <w:pgMar w:top="1440" w:right="1440" w:bottom="1440" w:left="1440" w:header="708" w:footer="708" w:gutter="0"/>
@@ -404,7 +404,7 @@
404
404
  <w:spacing w:before="45" w:after="45" w:line="360" w:lineRule="auto"/>
405
405
  </w:pPr>
406
406
  <w:rPr>
407
- <w:rFonts w:ascii="Inter" w:hAnsi="Inter" w:cs="Times New Roman (Body CS)"/>
407
+ <w:rFonts w:ascii="Inter" w:cs="Inter" w:eastAsia="Inter" w:hAnsi="Inter"/>
408
408
  </w:rPr>
409
409
  </w:style>
410
410
  <w:style w:type="paragraph" w:styleId="Heading1">
@@ -597,6 +597,13 @@
597
597
  <w:uiPriority w:val="1"/>
598
598
  <w:unhideWhenUsed/>
599
599
  </w:style>
600
+ <w:style w:type="character" w:customStyle="1" w:styleId="VerbatimChar">
601
+ <w:name w:val="Verbatim Char"/>
602
+ <w:basedOn w:val="DefaultParagraphFont"/>
603
+ <w:rPr>
604
+ <w:rFonts w:ascii="GeistMono" w:cs="GeistMono" w:eastAsia="GeistMono" w:hAnsi="GeistMono"/>
605
+ </w:rPr>
606
+ </w:style>
600
607
  <w:style w:type="table" w:default="1" w:styleId="TableNormal">
601
608
  <w:name w:val="Normal Table"/>
602
609
  <w:uiPriority w:val="99"/>
@@ -948,13 +955,31 @@
948
955
  <w:szCs w:val="18"/>
949
956
  </w:rPr>
950
957
  </w:style>
951
- <w:style w:type="paragraph" w:styleId="Codeblock">
952
- <w:name w:val="Codeblock"/>
958
+ <w:style w:type="paragraph" w:customStyle="1" w:styleId="SourceCode">
959
+ <w:name w:val="Source Code"/>
953
960
  <w:basedOn w:val="Normal"/>
961
+ <w:link w:val="VerbatimChar"/>
962
+ <w:pPr>
963
+ <w:shd w:val="solid" w:color="161616" w:fill="161616"/>
964
+ </w:pPr>
954
965
  <w:rPr>
955
966
  <w:noProof/>
967
+ <w:wordWrap w:val="off"/>
956
968
  <w:color w:val="ffffff"/>
957
969
  <w:rFonts w:ascii="GeistMono" w:cs="GeistMono" w:eastAsia="GeistMono" w:hAnsi="GeistMono"/>
958
970
  </w:rPr>
959
971
  </w:style>
972
+ <w:style w:type="paragraph" w:styleId="BlockQuote">
973
+ <w:name w:val="Block Quote"/>
974
+ <w:basedOn w:val="Normal"/>
975
+ <w:next w:val="Normal"/>
976
+ <w:uiPriority w:val="9"/>
977
+ <w:unhideWhenUsed/>
978
+ <w:qFormat/>
979
+ <w:pPr>
980
+ <w:pBdr>
981
+ <w:left w:val="single" w:color="7D797A" w:sz="8" w:space="100"/>
982
+ </w:pBdr>
983
+ </w:pPr>
984
+ </w:style>
960
985
  </w:styles>
@@ -25,12 +25,6 @@
25
25
  <w:tcW w:type="pct" w:w="26.666666666666668%"/>
26
26
  </w:tcPr>
27
27
  <w:p>
28
- <w:pPr>
29
- <w:pStyle w:val="Normal"/>
30
- <w:rPr>
31
- <w:rFonts w:ascii="Inter" w:cs="Inter" w:eastAsia="Inter" w:hAnsi="Inter"/>
32
- </w:rPr>
33
- </w:pPr>
34
28
  <w:r>
35
29
  <w:t xml:space="preserve">This paragraph is in a column!</w:t>
36
30
  </w:r>
@@ -54,12 +48,6 @@
54
48
  <w:tcW w:type="pct" w:w="26.666666666666668%"/>
55
49
  </w:tcPr>
56
50
  <w:p>
57
- <w:pPr>
58
- <w:pStyle w:val="Normal"/>
59
- <w:rPr>
60
- <w:rFonts w:ascii="Inter" w:cs="Inter" w:eastAsia="Inter" w:hAnsi="Inter"/>
61
- </w:rPr>
62
- </w:pPr>
63
51
  <w:r>
64
52
  <w:t xml:space="preserve">You can have multiple blocks in a column too</w:t>
65
53
  </w:r>
@@ -404,7 +404,7 @@
404
404
  <w:spacing w:before="45" w:after="45" w:line="360" w:lineRule="auto"/>
405
405
  </w:pPr>
406
406
  <w:rPr>
407
- <w:rFonts w:ascii="Inter" w:hAnsi="Inter" w:cs="Times New Roman (Body CS)"/>
407
+ <w:rFonts w:ascii="Inter" w:cs="Inter" w:eastAsia="Inter" w:hAnsi="Inter"/>
408
408
  </w:rPr>
409
409
  </w:style>
410
410
  <w:style w:type="paragraph" w:styleId="Heading1">
@@ -597,6 +597,13 @@
597
597
  <w:uiPriority w:val="1"/>
598
598
  <w:unhideWhenUsed/>
599
599
  </w:style>
600
+ <w:style w:type="character" w:customStyle="1" w:styleId="VerbatimChar">
601
+ <w:name w:val="Verbatim Char"/>
602
+ <w:basedOn w:val="DefaultParagraphFont"/>
603
+ <w:rPr>
604
+ <w:rFonts w:ascii="GeistMono" w:cs="GeistMono" w:eastAsia="GeistMono" w:hAnsi="GeistMono"/>
605
+ </w:rPr>
606
+ </w:style>
600
607
  <w:style w:type="table" w:default="1" w:styleId="TableNormal">
601
608
  <w:name w:val="Normal Table"/>
602
609
  <w:uiPriority w:val="99"/>
@@ -948,13 +955,31 @@
948
955
  <w:szCs w:val="18"/>
949
956
  </w:rPr>
950
957
  </w:style>
951
- <w:style w:type="paragraph" w:styleId="Codeblock">
952
- <w:name w:val="Codeblock"/>
958
+ <w:style w:type="paragraph" w:customStyle="1" w:styleId="SourceCode">
959
+ <w:name w:val="Source Code"/>
953
960
  <w:basedOn w:val="Normal"/>
961
+ <w:link w:val="VerbatimChar"/>
962
+ <w:pPr>
963
+ <w:shd w:val="solid" w:color="161616" w:fill="161616"/>
964
+ </w:pPr>
954
965
  <w:rPr>
955
966
  <w:noProof/>
967
+ <w:wordWrap w:val="off"/>
956
968
  <w:color w:val="ffffff"/>
957
969
  <w:rFonts w:ascii="GeistMono" w:cs="GeistMono" w:eastAsia="GeistMono" w:hAnsi="GeistMono"/>
958
970
  </w:rPr>
959
971
  </w:style>
972
+ <w:style w:type="paragraph" w:styleId="BlockQuote">
973
+ <w:name w:val="Block Quote"/>
974
+ <w:basedOn w:val="Normal"/>
975
+ <w:next w:val="Normal"/>
976
+ <w:uiPriority w:val="9"/>
977
+ <w:unhideWhenUsed/>
978
+ <w:qFormat/>
979
+ <w:pPr>
980
+ <w:pBdr>
981
+ <w:left w:val="single" w:color="7D797A" w:sz="8" w:space="100"/>
982
+ </w:pBdr>
983
+ </w:pPr>
984
+ </w:style>
960
985
  </w:styles>
@@ -34,8 +34,8 @@ function blockPropsToStyles(
34
34
  props.backgroundColor === "default" || !props.backgroundColor
35
35
  ? undefined
36
36
  : {
37
- type: ShadingType.SOLID,
38
- color: (() => {
37
+ type: ShadingType.CLEAR,
38
+ fill: (() => {
39
39
  const color = colors[props.backgroundColor]?.background;
40
40
  if (!color) {
41
41
  return undefined;
@@ -84,11 +84,7 @@ export const docxBlockMappingForDefaultSchema: BlockMapping<
84
84
  paragraph: (block, exporter) => {
85
85
  return new Paragraph({
86
86
  ...blockPropsToStyles(block.props, exporter.options.colors),
87
- children: exporter.transformInlineContent(block.content),
88
- style: "Normal",
89
- run: {
90
- font: "Inter",
91
- },
87
+ children: exporter.transformInlineContent(block.content)
92
88
  });
93
89
  },
94
90
  toggleListItem: (block, exporter) => {
@@ -143,17 +139,7 @@ export const docxBlockMappingForDefaultSchema: BlockMapping<
143
139
  },
144
140
  quote: (block, exporter) => {
145
141
  return new Paragraph({
146
- shading: {
147
- color: "#7D797A",
148
- },
149
- border: {
150
- left: {
151
- color: "#7D797A",
152
- space: 100,
153
- style: "single",
154
- size: 8,
155
- },
156
- },
142
+ style: "BlockQuote",
157
143
  ...blockPropsToStyles(block.props, exporter.options.colors),
158
144
  children: exporter.transformInlineContent(block.content),
159
145
  });
@@ -180,12 +166,7 @@ export const docxBlockMappingForDefaultSchema: BlockMapping<
180
166
  const textContent = (block.content as StyledText<any>[])[0]?.text || "";
181
167
 
182
168
  return new Paragraph({
183
- style: "Codeblock",
184
- shading: {
185
- type: ShadingType.SOLID,
186
- fill: "161616",
187
- color: "161616",
188
- },
169
+ style: "SourceCode",
189
170
  children: [
190
171
  ...textContent.split("\n").map((line, index) => {
191
172
  return new TextRun({
@@ -1,5 +1,5 @@
1
1
  import { DefaultStyleSchema, StyleMapping } from "@blocknote/core";
2
- import { IRunPropertiesOptions } from "docx";
2
+ import { IRunPropertiesOptions, ShadingType } from "docx";
3
3
 
4
4
  export const docxStyleMappingForDefaultSchema: StyleMapping<
5
5
  DefaultStyleSchema,
@@ -49,6 +49,7 @@ export const docxStyleMappingForDefaultSchema: StyleMapping<
49
49
  }
50
50
  return {
51
51
  shading: {
52
+ type: ShadingType.CLEAR,
52
53
  fill: color.slice(1),
53
54
  },
54
55
  };
@@ -70,7 +71,7 @@ export const docxStyleMappingForDefaultSchema: StyleMapping<
70
71
  return {};
71
72
  }
72
73
  return {
73
- font: "GeistMono",
74
+ style: "VerbatimChar"
74
75
  };
75
76
  },
76
77
  };
@@ -98,7 +98,7 @@ export class DOCXExporter<
98
98
 
99
99
  return new TextRun({
100
100
  ...styles,
101
- style: hyperlink ? "Hyperlink" : undefined,
101
+ style: hyperlink ? "Hyperlink" : styles.style,
102
102
  text: styledText.text,
103
103
  });
104
104
  }
@@ -428,7 +428,7 @@
428
428
  <w:spacing w:before="45" w:after="45" w:line="360" w:lineRule="auto" />
429
429
  </w:pPr>
430
430
  <w:rPr>
431
- <w:rFonts w:ascii="Inter" w:hAnsi="Inter" w:cs="Times New Roman (Body CS)" />
431
+ <w:rFonts w:ascii="Inter" w:cs="Inter" w:eastAsia="Inter" w:hAnsi="Inter"/>
432
432
  </w:rPr>
433
433
  </w:style>
434
434
  <w:style w:type="paragraph" w:styleId="Heading1">
@@ -621,6 +621,13 @@
621
621
  <w:uiPriority w:val="1" />
622
622
  <w:unhideWhenUsed />
623
623
  </w:style>
624
+ <w:style w:type="character" w:customStyle="1" w:styleId="VerbatimChar">
625
+ <w:name w:val="Verbatim Char"/>
626
+ <w:basedOn w:val="DefaultParagraphFont"/>
627
+ <w:rPr>
628
+ <w:rFonts w:ascii="GeistMono" w:cs="GeistMono" w:eastAsia="GeistMono" w:hAnsi="GeistMono"/>
629
+ </w:rPr>
630
+ </w:style>
624
631
  <w:style w:type="table" w:default="1" w:styleId="TableNormal">
625
632
  <w:name w:val="Normal Table" />
626
633
  <w:uiPriority w:val="99" />
@@ -978,13 +985,31 @@
978
985
  <w:szCs w:val="18" />
979
986
  </w:rPr>
980
987
  </w:style>
981
- <w:style w:type="paragraph" w:styleId="Codeblock">
982
- <w:name w:val="Codeblock" />
988
+ <w:style w:type="paragraph" w:customStyle="1" w:styleId="SourceCode">
989
+ <w:name w:val="Source Code" />
983
990
  <w:basedOn w:val="Normal" />
991
+ <w:link w:val="VerbatimChar"/>
992
+ <w:pPr>
993
+ <w:shd w:val="solid" w:color="161616" w:fill="161616"/>
994
+ </w:pPr>
984
995
  <w:rPr>
985
996
  <w:noProof />
997
+ <w:wordWrap w:val="off"/>
986
998
  <w:color w:val="ffffff"/>
987
999
  <w:rFonts w:ascii="GeistMono" w:cs="GeistMono" w:eastAsia="GeistMono" w:hAnsi="GeistMono"/>
988
1000
  </w:rPr>
989
1001
  </w:style>
1002
+ <w:style w:type="paragraph" w:styleId="BlockQuote">
1003
+ <w:name w:val="Block Quote"/>
1004
+ <w:basedOn w:val="Normal"/>
1005
+ <w:next w:val="Normal"/>
1006
+ <w:uiPriority w:val="9"/>
1007
+ <w:unhideWhenUsed/>
1008
+ <w:qFormat/>
1009
+ <w:pPr>
1010
+ <w:pBdr>
1011
+ <w:left w:val="single" w:color="7D797A" w:sz="8" w:space="100"/>
1012
+ </w:pBdr>
1013
+ </w:pPr>
1014
+ </w:style>
990
1015
  </w:styles>
@@ -43,7 +43,8 @@ export const Table = (
43
43
  return new TableCell({
44
44
  width: width
45
45
  ? {
46
- size: `${width * 0.75}pt`,
46
+ // The type is twentieths of a point (dxa)
47
+ size: width * 0.75 * 20,
47
48
  type: "dxa",
48
49
  }
49
50
  : undefined,