@shikijs/core 3.8.0 → 3.8.1

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.
Files changed (2) hide show
  1. package/dist/index.mjs +4 -0
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -450,6 +450,10 @@ function verifyIntersections(items) {
450
450
  continue;
451
451
  if (isBarHasFooStart && isBarHasFooEnd)
452
452
  continue;
453
+ if (isBarHasFooStart && foo.start.offset === foo.end.offset)
454
+ continue;
455
+ if (isFooHasBarEnd && bar.start.offset === bar.end.offset)
456
+ continue;
453
457
  throw new ShikiError$1(`Decorations ${JSON.stringify(foo.start)} and ${JSON.stringify(bar.start)} intersect.`);
454
458
  }
455
459
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shikijs/core",
3
3
  "type": "module",
4
- "version": "3.8.0",
4
+ "version": "3.8.1",
5
5
  "description": "Core of Shiki",
6
6
  "author": "Pine Wu <octref@gmail.com>; Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -39,7 +39,7 @@
39
39
  "@shikijs/vscode-textmate": "^10.0.2",
40
40
  "@types/hast": "^3.0.4",
41
41
  "hast-util-to-html": "^9.0.5",
42
- "@shikijs/types": "3.8.0"
42
+ "@shikijs/types": "3.8.1"
43
43
  },
44
44
  "scripts": {
45
45
  "build": "unbuild",