@shikijs/transformers 3.15.0 → 3.16.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.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -1
  2. package/package.json +3 -3
package/dist/index.mjs CHANGED
@@ -282,7 +282,7 @@ function transformerNotationMap(options = {}, name = "@shikijs/transformers:nota
282
282
  } = options;
283
283
  return createCommentNotationTransformer(
284
284
  name,
285
- new RegExp(`\\s*\\[!code (${Object.keys(classMap).map(escapeRegExp).join("|")})(:\\d+)?\\]`),
285
+ new RegExp(`#?\\s*\\[!code (${Object.keys(classMap).map(escapeRegExp).join("|")})(:\\d+)?\\]`, "gi"),
286
286
  function([_, match, range = ":1"], _line, _comment, lines, index) {
287
287
  const lineNum = Number.parseInt(range.slice(1), 10);
288
288
  for (let i = index; i < Math.min(index + lineNum, lines.length); i++) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shikijs/transformers",
3
3
  "type": "module",
4
- "version": "3.15.0",
4
+ "version": "3.16.0",
5
5
  "description": "Collective of common transformers transformers for Shiki",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -27,8 +27,8 @@
27
27
  "dist"
28
28
  ],
29
29
  "dependencies": {
30
- "@shikijs/core": "3.15.0",
31
- "@shikijs/types": "3.15.0"
30
+ "@shikijs/core": "3.16.0",
31
+ "@shikijs/types": "3.16.0"
32
32
  },
33
33
  "scripts": {
34
34
  "build": "unbuild",