md2gost 1.5.0 → 1.6.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.
package/assets/styles.xml CHANGED
@@ -1137,4 +1137,130 @@
1137
1137
  <w:link w:val="TableCaption"/>
1138
1138
  <w:rsid w:val="008D4793"/>
1139
1139
  </w:style>
1140
+ <w:style w:type="character" w:customStyle="1" w:styleId="w6asjqtextbase1">
1141
+ <w:name w:val="w6asjq_textbase1"/>
1142
+ <w:basedOn w:val="a3"/>
1143
+ <w:rsid w:val="00F13E8F"/>
1144
+ </w:style>
1145
+ <w:style w:type="paragraph" w:customStyle="1" w:styleId="xAdmonition">
1146
+ <w:name w:val="xAdmonition"/>
1147
+ <w:basedOn w:val="a2"/>
1148
+ <w:link w:val="xAdmonition0"/>
1149
+ <w:qFormat/>
1150
+ <w:rsid w:val="00581E5F"/>
1151
+ <w:pPr>
1152
+ <w:pBdr>
1153
+ <w:top w:val="single" w:sz="2" w:space="6" w:color="FFFFFF" w:themeColor="background1"/>
1154
+ <w:left w:val="single" w:sz="18" w:space="10" w:color="595959" w:themeColor="text1" w:themeTint="A6"/>
1155
+ <w:bottom w:val="single" w:sz="2" w:space="6" w:color="FFFFFF" w:themeColor="background1"/>
1156
+ <w:right w:val="single" w:sz="2" w:space="6" w:color="FFFFFF" w:themeColor="background1"/>
1157
+ </w:pBdr>
1158
+ <w:shd w:val="clear" w:color="auto" w:fill="F8F8F8"/>
1159
+ <w:ind w:left="709" w:firstLine="0"/>
1160
+ <w:contextualSpacing/>
1161
+ </w:pPr>
1162
+ <w:rPr>
1163
+ <w:kern w:val="0"/>
1164
+ </w:rPr>
1165
+ </w:style>
1166
+ <w:style w:type="character" w:customStyle="1" w:styleId="xAdmonition0">
1167
+ <w:name w:val="xAdmonition Знак"/>
1168
+ <w:basedOn w:val="a3"/>
1169
+ <w:link w:val="xAdmonition"/>
1170
+ <w:rsid w:val="00581E5F"/>
1171
+ <w:rPr>
1172
+ <w:rFonts w:ascii="Times New Roman" w:hAnsi="Times New Roman"/>
1173
+ <w:kern w:val="0"/>
1174
+ <w:sz w:val="28"/>
1175
+ <w:shd w:val="clear" w:color="auto" w:fill="F8F8F8"/>
1176
+ </w:rPr>
1177
+ </w:style>
1178
+ <w:style w:type="paragraph" w:customStyle="1" w:styleId="xAdmonitiontip">
1179
+ <w:name w:val="xAdmonition_tip"/>
1180
+ <w:basedOn w:val="xAdmonition"/>
1181
+ <w:link w:val="xAdmonitiontip0"/>
1182
+ <w:qFormat/>
1183
+ <w:rsid w:val="00F13E8F"/>
1184
+ <w:pPr>
1185
+ <w:pBdr>
1186
+ <w:left w:val="single" w:sz="18" w:space="10" w:color="326B46"/>
1187
+ </w:pBdr>
1188
+ <w:shd w:val="clear" w:color="auto" w:fill="F1F7F1"/>
1189
+ </w:pPr>
1190
+ </w:style>
1191
+ <w:style w:type="paragraph" w:customStyle="1" w:styleId="xAdmonitionwarning">
1192
+ <w:name w:val="xAdmonition_warning"/>
1193
+ <w:basedOn w:val="xAdmonition"/>
1194
+ <w:link w:val="xAdmonitionwarning0"/>
1195
+ <w:qFormat/>
1196
+ <w:rsid w:val="00F13E8F"/>
1197
+ <w:pPr>
1198
+ <w:pBdr>
1199
+ <w:left w:val="single" w:sz="18" w:space="10" w:color="92620F"/>
1200
+ </w:pBdr>
1201
+ <w:shd w:val="clear" w:color="auto" w:fill="FFF7E9"/>
1202
+ </w:pPr>
1203
+ </w:style>
1204
+ <w:style w:type="character" w:customStyle="1" w:styleId="xAdmonitiontip0">
1205
+ <w:name w:val="xAdmonition_tip Знак"/>
1206
+ <w:basedOn w:val="xAdmonition0"/>
1207
+ <w:link w:val="xAdmonitiontip"/>
1208
+ <w:rsid w:val="00F13E8F"/>
1209
+ <w:rPr>
1210
+ <w:shd w:val="clear" w:color="auto" w:fill="F1F7F1"/>
1211
+ </w:rPr>
1212
+ </w:style>
1213
+ <w:style w:type="paragraph" w:customStyle="1" w:styleId="xAdmonitiondanger">
1214
+ <w:name w:val="xAdmonition_danger"/>
1215
+ <w:basedOn w:val="xAdmonition"/>
1216
+ <w:link w:val="xAdmonitiondanger0"/>
1217
+ <w:qFormat/>
1218
+ <w:rsid w:val="00F13E8F"/>
1219
+ <w:pPr>
1220
+ <w:pBdr>
1221
+ <w:left w:val="single" w:sz="18" w:space="10" w:color="A53636"/>
1222
+ </w:pBdr>
1223
+ <w:shd w:val="clear" w:color="auto" w:fill="FBEFEF"/>
1224
+ </w:pPr>
1225
+ </w:style>
1226
+ <w:style w:type="character" w:customStyle="1" w:styleId="xAdmonitionwarning0">
1227
+ <w:name w:val="xAdmonition_warning Знак"/>
1228
+ <w:basedOn w:val="xAdmonition0"/>
1229
+ <w:link w:val="xAdmonitionwarning"/>
1230
+ <w:rsid w:val="00F13E8F"/>
1231
+ <w:rPr>
1232
+ <w:shd w:val="clear" w:color="auto" w:fill="FFF7E9"/>
1233
+ </w:rPr>
1234
+ </w:style>
1235
+ <w:style w:type="paragraph" w:customStyle="1" w:styleId="xAdmonitioninfo">
1236
+ <w:name w:val="xAdmonition_info"/>
1237
+ <w:basedOn w:val="xAdmonition"/>
1238
+ <w:link w:val="xAdmonitioninfo0"/>
1239
+ <w:qFormat/>
1240
+ <w:rsid w:val="00F13E8F"/>
1241
+ <w:pPr>
1242
+ <w:pBdr>
1243
+ <w:left w:val="single" w:sz="18" w:space="10" w:color="285A8A"/>
1244
+ </w:pBdr>
1245
+ <w:shd w:val="clear" w:color="auto" w:fill="F0F5FA"/>
1246
+ </w:pPr>
1247
+ </w:style>
1248
+ <w:style w:type="character" w:customStyle="1" w:styleId="xAdmonitiondanger0">
1249
+ <w:name w:val="xAdmonition_danger Знак"/>
1250
+ <w:basedOn w:val="xAdmonition0"/>
1251
+ <w:link w:val="xAdmonitiondanger"/>
1252
+ <w:rsid w:val="00F13E8F"/>
1253
+ <w:rPr>
1254
+ <w:shd w:val="clear" w:color="auto" w:fill="FBEFEF"/>
1255
+ </w:rPr>
1256
+ </w:style>
1257
+ <w:style w:type="character" w:customStyle="1" w:styleId="xAdmonitioninfo0">
1258
+ <w:name w:val="xAdmonition_info Знак"/>
1259
+ <w:basedOn w:val="xAdmonition0"/>
1260
+ <w:link w:val="xAdmonitioninfo"/>
1261
+ <w:rsid w:val="00F13E8F"/>
1262
+ <w:rPr>
1263
+ <w:shd w:val="clear" w:color="auto" w:fill="F0F5FA"/>
1264
+ </w:rPr>
1265
+ </w:style>
1140
1266
  </w:styles>
Binary file
package/dist/index.d.ts CHANGED
@@ -1,5 +1,24 @@
1
1
  // Generated by dts-bundle-generator v9.5.1
2
2
 
3
+ export declare class UserInputError extends Error {
4
+ constructor(message: string);
5
+ }
6
+ export type JSONValue = string | number | boolean | null | {
7
+ [x: string]: JSONValue;
8
+ } | Array<JSONValue>;
9
+ export type JSONDict = Record<string, JSONValue>;
10
+ export interface TemplateExecOptions {
11
+ allowLoops?: boolean;
12
+ allowIncludes?: boolean;
13
+ maxLoopIterations?: number;
14
+ maxTotalIterations?: number;
15
+ maxDepth?: number;
16
+ maxIncludeDepth?: number;
17
+ maxIncludes?: number;
18
+ maxFileLength?: number;
19
+ maxTotalInputLength?: number;
20
+ maxGeneratedLength?: number;
21
+ }
3
22
  /**
4
23
  * Configuration options for the Markdown rendering process.
5
24
  */
@@ -69,6 +88,32 @@ export interface MDRenderConfig {
69
88
  * @defaultValue `""`
70
89
  */
71
90
  checkFilesIsInsidePath?: string | false;
91
+ /**
92
+ * Variables available to `{{name}}` substitutions in the root Markdown document.
93
+ * Included Markdown files inherit these values and may override them with include parameters.
94
+ * When omitted, the root document is not treated as a template.
95
+ */
96
+ variables?: JSONDict;
97
+ /**
98
+ * Controls template loops, includes, and resource limits.
99
+ * @defaultValue `{ allowIncludes: true, allowLoops: true }`
100
+ * @example
101
+ * ```ts
102
+ * templateOptions: {
103
+ * allowLoops: true,
104
+ * allowIncludes: true,
105
+ * maxLoopIterations: 100,
106
+ * maxTotalIterations: 2_000,
107
+ * maxDepth: 20,
108
+ * maxIncludeDepth: 10,
109
+ * maxIncludes: 50,
110
+ * maxFileLength: 200_000,
111
+ * maxTotalInputLength: 1_000_000,
112
+ * maxGeneratedLength: 2_000_000,
113
+ * }
114
+ * ```
115
+ */
116
+ templateOptions?: TemplateExecOptions;
72
117
  }
73
118
  /**
74
119
  * The successful result of a Markdown rendering operation.