@shikijs/transformers 1.13.0 → 1.14.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 +1 -1
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -194,7 +194,7 @@ function transformerNotationMap(options = {}, name = "@shikijs/transformers:nota
194
194
  } = options;
195
195
  return createCommentNotationTransformer(
196
196
  name,
197
- new RegExp(`\\s*(?://|/\\*|<!--|#|--)\\s+\\[!code (${Object.keys(classMap).map(escapeRegExp).join("|")})(:\\d+)?\\]\\s*(?:\\*/|-->)?`),
197
+ new RegExp(`\\s*(?://|/\\*|<!--|#|--|%{1,2}|;{1,2}|"|')\\s+\\[!code (${Object.keys(classMap).map(escapeRegExp).join("|")})(:\\d+)?\\]\\s*(?:\\*/|-->)?\\s*$`),
198
198
  function([_, match, range = ":1"], _line, _comment, lines, index) {
199
199
  const lineNum = Number.parseInt(range.slice(1), 10);
200
200
  lines.slice(index, index + lineNum).forEach((line) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shikijs/transformers",
3
3
  "type": "module",
4
- "version": "1.13.0",
4
+ "version": "1.14.1",
5
5
  "description": "Collective of common transformers transformers for Shiki",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -30,7 +30,7 @@
30
30
  "dist"
31
31
  ],
32
32
  "dependencies": {
33
- "shiki": "1.13.0"
33
+ "shiki": "1.14.1"
34
34
  },
35
35
  "scripts": {
36
36
  "build": "unbuild",