@tryghost/mg-substack 0.8.0 → 0.8.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.
Files changed (2) hide show
  1. package/lib/process.js +6 -0
  2. package/package.json +4 -4
package/lib/process.js CHANGED
@@ -135,6 +135,12 @@ const processContent = (post, siteUrl, options) => {
135
135
  }
136
136
  });
137
137
 
138
+ // Wrap these in a HTML card so they can be handled by publishers as needed
139
+ $html('div.latex-rendered').each((i, el) => {
140
+ $(el).before('<!--kg-card-begin: html-->');
141
+ $(el).after('<!--kg-card-end: html-->');
142
+ });
143
+
138
144
  $html('.image3').each((i, el) => {
139
145
  const attrs = $(el).attr('data-attrs');
140
146
  const attrsObj = JSON.parse(attrs);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/mg-substack",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "repository": "https://github.com/TryGhost/migrate/tree/main/packages/mg-substack",
5
5
  "author": "Ghost Foundation",
6
6
  "license": "MIT",
@@ -21,14 +21,14 @@
21
21
  },
22
22
  "devDependencies": {
23
23
  "eslint": "8.57.0",
24
- "jest": "30.0.3",
24
+ "jest": "30.0.5",
25
25
  "jest-extended": "6.0.0"
26
26
  },
27
27
  "dependencies": {
28
28
  "@tryghost/debug": "0.1.35",
29
29
  "@tryghost/errors": "1.3.8",
30
30
  "@tryghost/kg-default-cards": "10.1.5",
31
- "@tryghost/mg-fs-utils": "0.15.6",
31
+ "@tryghost/mg-fs-utils": "0.15.7",
32
32
  "@tryghost/string": "0.2.17",
33
33
  "cheerio": "1.0.0-rc.12",
34
34
  "he": "1.2.0",
@@ -37,5 +37,5 @@
37
37
  "simple-dom": "1.4.0",
38
38
  "srcset": "5.0.1"
39
39
  },
40
- "gitHead": "958389c2c9667c0e7e44f983d4fd1aa256caff4d"
40
+ "gitHead": "89e6e38587face966cdfadfbbc74aef95c594c7c"
41
41
  }