Open kosirm opened 6 months ago
It's a small bug... In /src/anchorEngine.ts, line 1208:
const anchors = this.currentAnchors.length;
shoud be: const anchors = flattenAnchors(this.currentAnchors).length;
const anchors = flattenAnchors(this.currentAnchors).length;
Problem occurs when there are sections in anchors, so currentAnchors is not reflecting real number of anchors in file.
Created pull request.
It's a small bug... In /src/anchorEngine.ts, line 1208:
const anchors = this.currentAnchors.length;
shoud be:
const anchors = flattenAnchors(this.currentAnchors).length;
Problem occurs when there are sections in anchors, so currentAnchors is not reflecting real number of anchors in file.
Created pull request.