@canopy-iiif/app 0.9.13 → 0.9.14

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.
package/lib/build/mdx.js CHANGED
@@ -11,6 +11,14 @@ const {
11
11
  ensureDirSync,
12
12
  withBase,
13
13
  } = require("../common");
14
+ let remarkGfm = null;
15
+ try {
16
+ const mod = require("remark-gfm");
17
+ const plugin = mod && (typeof mod === "function" ? mod : mod.default);
18
+ remarkGfm = typeof plugin === "function" ? plugin : null;
19
+ } catch (_) {
20
+ remarkGfm = null;
21
+ }
14
22
 
15
23
  const EXTRA_REMARK_PLUGINS = (() => {
16
24
  try {
@@ -32,6 +40,9 @@ function buildCompileOptions(overrides = {}) {
32
40
  format: "mdx",
33
41
  };
34
42
  const remarkPlugins = [];
43
+ if (remarkGfm) {
44
+ remarkPlugins.push(remarkGfm);
45
+ }
35
46
  if (overrides && Array.isArray(overrides.remarkPlugins)) {
36
47
  remarkPlugins.push(...overrides.remarkPlugins);
37
48
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canopy-iiif/app",
3
- "version": "0.9.13",
3
+ "version": "0.9.14",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "Mat Jordan <mat@northwestern.edu>",
@@ -44,6 +44,7 @@
44
44
  "@mdx-js/react": "^3.1.0",
45
45
  "charm": "^1.0.2",
46
46
  "js-yaml": "^4.1.0",
47
+ "remark-gfm": "^4.0.0",
47
48
  "react-masonry-css": "^1.0.16",
48
49
  "sass": "^1.77.0",
49
50
  "slugify": "^1.6.6"