@quartz-community/remark-obsidian 2.2.2 → 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/index.js CHANGED
@@ -5885,7 +5885,9 @@ function factory3(type) {
5885
5885
  apply.reset = reset;
5886
5886
  reset.test = test;
5887
5887
  apply.test = test;
5888
+ var original = value2;
5888
5889
  value2 = value2.slice(subvalue.length);
5890
+ var remaining = value2;
5889
5891
  updatePosition(subvalue);
5890
5892
  indent2 = indent2();
5891
5893
  return apply;
@@ -5896,14 +5898,14 @@ function factory3(type) {
5896
5898
  var node2 = apply.apply(null, arguments);
5897
5899
  line = current.line;
5898
5900
  column = current.column;
5899
- value2 = subvalue + value2;
5901
+ value2 = value2 === remaining ? original : subvalue + value2;
5900
5902
  return node2;
5901
5903
  }
5902
5904
  function test() {
5903
5905
  var result = pos({});
5904
5906
  line = current.line;
5905
5907
  column = current.column;
5906
- value2 = subvalue + value2;
5908
+ value2 = value2 === remaining ? original : subvalue + value2;
5907
5909
  return result.position;
5908
5910
  }
5909
5911
  }