zenn-markdown-html 0.1.126 → 0.1.127-alpha.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.
@@ -200,10 +200,11 @@ const embedGenerators = {
200
200
  }
201
201
 
202
202
  };
203
+ const embedKeys = Object.keys(embedGenerators);
203
204
  /** `EmbedType`か判定する */
204
205
 
205
206
  function isEmbedType(type) {
206
- return typeof type === 'string' && type in embedGenerators;
207
+ return typeof type === 'string' && embedKeys.includes(type);
207
208
  }
208
209
  /** 渡された`type`の埋め込み要素のHTML文字列を返す */
209
210
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zenn-markdown-html",
3
- "version": "0.1.126",
3
+ "version": "0.1.127-alpha.0",
4
4
  "license": "MIT",
5
5
  "description": "Convert markdown to zenn flavor html.",
6
6
  "main": "lib/index.js",
@@ -53,7 +53,7 @@
53
53
  "markdown-it-task-lists": "^2.1.1",
54
54
  "prismjs": "^1.27.0"
55
55
  },
56
- "gitHead": "2068f91c365dff20abbfc8de7eed6580a81bdbc0",
56
+ "gitHead": "974c55043ac24a774b2c90105b2af3b840089ba1",
57
57
  "publishConfig": {
58
58
  "access": "public"
59
59
  }