zenn-embed-elements 0.1.144-alpha.1 → 0.1.144-alpha.2

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.
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.EmbedKatex = void 0;
13
13
  const load_script_1 = require("../utils/load-script");
14
14
  const load_stylesheet_1 = require("../utils/load-stylesheet");
15
- const katexVersion = '0.13.13';
16
15
  const containerId = 'katex-container';
17
16
  class EmbedKatex extends HTMLElement {
18
17
  constructor() {
@@ -30,13 +29,15 @@ class EmbedKatex extends HTMLElement {
30
29
  return __awaiter(this, void 0, void 0, function* () {
31
30
  if (typeof katex === 'undefined') {
32
31
  yield (0, load_script_1.loadScript)({
33
- src: `https://cdn.jsdelivr.net/npm/katex@${katexVersion}/dist/katex.min.js`,
32
+ // 本来はバージョンを指定した方がいいが、他の処理との兼ね合いでバージョンを固定するのは難しいので指定していません
33
+ src: `https://cdn.jsdelivr.net/npm/katex/dist/katex.min.js`,
34
34
  id: 'katex-js',
35
35
  });
36
36
  }
37
37
  // CSSを読み込む(まだ読み込まれていない場合のみ)
38
38
  (0, load_stylesheet_1.loadStylesheet)({
39
- href: `https://cdn.jsdelivr.net/npm/katex@${katexVersion}/dist/katex.min.css`,
39
+ // 本来はバージョンを指定した方がいいが、他の処理との兼ね合いでバージョンを固定するのは難しいので指定していません
40
+ href: `https://cdn.jsdelivr.net/npm/katex/dist/katex.min.css`,
40
41
  id: `katex-css`,
41
42
  });
42
43
  const displayMode = !!this.getAttribute('display-mode');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zenn-embed-elements",
3
- "version": "0.1.144-alpha.1",
3
+ "version": "0.1.144-alpha.2",
4
4
  "license": "MIT",
5
5
  "description": "Web components for embedded contents.",
6
6
  "repository": {
@@ -30,7 +30,7 @@
30
30
  "rimraf": "^4.1.2",
31
31
  "typescript": "^4.9.5"
32
32
  },
33
- "gitHead": "49ee25dead9bcc576d9dc71b6872bd29688a8061",
33
+ "gitHead": "e6d957dc16e133cff620113945e8cf472a6e0b5f",
34
34
  "publishConfig": {
35
35
  "access": "public"
36
36
  }