@quartz-community/remark-obsidian 2.2.1 → 2.2.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/legacy.d.ts CHANGED
@@ -5,6 +5,7 @@ import 'unist';
5
5
  import 'micromark-util-types';
6
6
  import 'mdast-util-from-markdown';
7
7
  import 'mdast-util-to-markdown';
8
+ import 'mdast-util-math';
8
9
 
9
10
  /**
10
11
  * The `legacy` reading as a plain function, for a consumer that only reads.
package/dist/legacy.js CHANGED
@@ -4336,7 +4336,9 @@ function factory3(type) {
4336
4336
  apply.reset = reset;
4337
4337
  reset.test = test;
4338
4338
  apply.test = test;
4339
+ var original = value;
4339
4340
  value = value.slice(subvalue.length);
4341
+ var remaining = value;
4340
4342
  updatePosition(subvalue);
4341
4343
  indent = indent();
4342
4344
  return apply;
@@ -4347,14 +4349,14 @@ function factory3(type) {
4347
4349
  var node = apply.apply(null, arguments);
4348
4350
  line = current.line;
4349
4351
  column = current.column;
4350
- value = subvalue + value;
4352
+ value = value === remaining ? original : subvalue + value;
4351
4353
  return node;
4352
4354
  }
4353
4355
  function test() {
4354
4356
  var result = pos({});
4355
4357
  line = current.line;
4356
4358
  column = current.column;
4357
- value = subvalue + value;
4359
+ value = value === remaining ? original : subvalue + value;
4358
4360
  return result.position;
4359
4361
  }
4360
4362
  }