@forsakringskassan/docs-generator 2.29.2 → 2.29.3
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/dist/{create-markdown-renderer-B7-jbpT6.mjs → create-markdown-renderer-Bqm7kdpQ.mjs} +2 -2
- package/dist/{create-markdown-renderer-B7-jbpT6.mjs.map → create-markdown-renderer-Bqm7kdpQ.mjs.map} +1 -1
- package/dist/index.mjs +2 -2
- package/dist/markdown.mjs +2 -2
- package/dist/runtime.mjs +102672 -101215
- package/dist/{vendor-xg15tfEs.mjs → vendor-COMHgwYY.mjs} +21 -2
- package/dist/vendor-COMHgwYY.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/vendor-xg15tfEs.mjs.map +0 -1
|
@@ -16271,6 +16271,7 @@ function createDedent(options) {
|
|
|
16271
16271
|
function dedent(strings, ...values) {
|
|
16272
16272
|
const raw = typeof strings === "string" ? [strings] : strings.raw;
|
|
16273
16273
|
const {
|
|
16274
|
+
alignValues = false,
|
|
16274
16275
|
escapeSpecialCharacters = Array.isArray(strings),
|
|
16275
16276
|
trimWhitespace = true
|
|
16276
16277
|
} = options;
|
|
@@ -16285,8 +16286,10 @@ function createDedent(options) {
|
|
|
16285
16286
|
}
|
|
16286
16287
|
result += next;
|
|
16287
16288
|
if (i < values.length) {
|
|
16289
|
+
const value = alignValues ? alignValue(values[i], result) : values[i];
|
|
16290
|
+
|
|
16288
16291
|
// eslint-disable-next-line @typescript-eslint/restrict-plus-operands
|
|
16289
|
-
result +=
|
|
16292
|
+
result += value;
|
|
16290
16293
|
}
|
|
16291
16294
|
}
|
|
16292
16295
|
|
|
@@ -16326,6 +16329,22 @@ function createDedent(options) {
|
|
|
16326
16329
|
}
|
|
16327
16330
|
}
|
|
16328
16331
|
|
|
16332
|
+
/**
|
|
16333
|
+
* Adjusts the indentation of a multi-line interpolated value to match the current line.
|
|
16334
|
+
*/
|
|
16335
|
+
function alignValue(value, precedingText) {
|
|
16336
|
+
if (typeof value !== "string" || !value.includes("\n")) {
|
|
16337
|
+
return value;
|
|
16338
|
+
}
|
|
16339
|
+
const currentLine = precedingText.slice(precedingText.lastIndexOf("\n") + 1);
|
|
16340
|
+
const indentMatch = currentLine.match(/^(\s+)/);
|
|
16341
|
+
if (indentMatch) {
|
|
16342
|
+
const indent = indentMatch[1];
|
|
16343
|
+
return value.replace(/\n/g, `\n${indent}`);
|
|
16344
|
+
}
|
|
16345
|
+
return value;
|
|
16346
|
+
}
|
|
16347
|
+
|
|
16329
16348
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
16330
16349
|
|
|
16331
16350
|
function getDefaultExportFromCjs (x) {
|
|
@@ -56151,4 +56170,4 @@ var srcExports = requireSrc();
|
|
|
56151
56170
|
var tinylr = /*@__PURE__*/getDefaultExportFromCjs(srcExports);
|
|
56152
56171
|
|
|
56153
56172
|
export { HighlightJS as H, MarkdownIt as M, deflist_plugin as a, closest as b, createTwoFilesPatch as c, dedent as d, distance as e, fm as f, globSync as g, glob as h, isCI as i, moduleImporter as j, cliProgress as k, createInstance as l, minimatch as m, fse as n, tinylr as t, watch$1 as w };
|
|
56154
|
-
//# sourceMappingURL=vendor-
|
|
56173
|
+
//# sourceMappingURL=vendor-COMHgwYY.mjs.map
|