@diplodoc/cli 4.7.0-beta-1 → 4.8.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/build/linter.js CHANGED
@@ -155,6 +155,7 @@ var images = require("@diplodoc/transform/lib/plugins/images");
155
155
  var monospace = require("@diplodoc/transform/lib/plugins/monospace");
156
156
  var table = require("@diplodoc/transform/lib/plugins/table");
157
157
  var term = require("@diplodoc/transform/lib/plugins/term");
158
+ var blockAnchor = require("@diplodoc/transform/lib/plugins/block-anchor");
158
159
  var changelog = require("@diplodoc/transform/lib/plugins/changelog");
159
160
  var mermaid = require("@diplodoc/mermaid-extension");
160
161
  var latex = require("@diplodoc/latex-extension");
@@ -183,7 +184,8 @@ var YFM_PLUGINS = [
183
184
  openapi.transform(),
184
185
  mermaid.transform(),
185
186
  latex.transform(),
186
- changelog
187
+ changelog,
188
+ blockAnchor
187
189
  ];
188
190
  var REGEXP_INCLUDE_CONTENTS = new RegExp("(?<=[{%]\\sinclude\\s).+(?=\\s[%}])", "gm");
189
191
  var REGEXP_INCLUDE_FILE_PATH = new RegExp("(?<=[(]).+(?=[)])", "g");
@@ -198,7 +200,7 @@ var import_node_html_parser = require("node-html-parser");
198
200
  var import_path2 = require("path");
199
201
  var import_utilsFS = require("@diplodoc/transform/lib/utilsFS");
200
202
  var import_url = __toESM(require("url"));
201
- var import_lodash = __toESM(require("lodash"));
203
+ var import_escapeRegExp = __toESM(require("lodash/escapeRegExp"));
202
204
 
203
205
  // src/utils/url.ts
204
206
  function isExternalHref(href) {
@@ -386,7 +388,7 @@ __export(includers_exports, {
386
388
  init: () => init
387
389
  });
388
390
  var import_path12 = require("path");
389
- var import_lodash3 = require("lodash");
391
+ var import_lodash2 = require("lodash");
390
392
 
391
393
  // src/services/includers/batteries/generic.ts
392
394
  var generic_exports = {};
@@ -397,7 +399,7 @@ __export(generic_exports, {
397
399
  });
398
400
  var import_promises2 = require("fs/promises");
399
401
  var import_path10 = require("path");
400
- var import_lodash2 = require("lodash");
402
+ var import_lodash = require("lodash");
401
403
  var import_js_yaml2 = require("js-yaml");
402
404
  var GenericIncluderError = class extends Error {
403
405
  constructor(message, path) {
@@ -462,7 +464,7 @@ function createGraphFromPaths(paths) {
462
464
  continue;
463
465
  }
464
466
  const file = chunks.pop();
465
- (0, import_lodash2.updateWith)(
467
+ (0, import_lodash.updateWith)(
466
468
  graph,
467
469
  chunks,
468
470
  (old) => {
@@ -660,7 +662,7 @@ function includersValid(includers) {
660
662
  return { status: true };
661
663
  }
662
664
  function includerValid(includer) {
663
- if ((0, import_lodash3.isObject)(includer)) {
665
+ if ((0, import_lodash2.isObject)(includer)) {
664
666
  if (typeof includer.name !== "string") {
665
667
  return {
666
668
  status: false,