@tryghost/mg-substack 0.8.3 → 0.8.5

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 +9 -0
  2. package/package.json +3 -3
package/lib/process.js CHANGED
@@ -141,6 +141,15 @@ const processContent = (post, siteUrl, options) => {
141
141
  $(el).after('<!--kg-card-end: html-->');
142
142
  });
143
143
 
144
+ // We don't currently handle these, so remove them to clean up the document
145
+ $html('div.native-video-embed').each((i, el) => {
146
+ $(el).remove();
147
+ });
148
+
149
+ $html('div.poll-embed').each((i, el) => {
150
+ $(el).remove();
151
+ });
152
+
144
153
  $html('.image3').each((i, el) => {
145
154
  const attrs = $(el).attr('data-attrs');
146
155
  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.3",
3
+ "version": "0.8.5",
4
4
  "repository": "https://github.com/TryGhost/migrate/tree/main/packages/mg-substack",
5
5
  "author": "Ghost Foundation",
6
6
  "license": "MIT",
@@ -28,7 +28,7 @@
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.16.0",
31
+ "@tryghost/mg-fs-utils": "0.16.1",
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": "b13503b8e28d0605bf8ed5a815a4f8a07a7caa99"
40
+ "gitHead": "614571603585add8915fc853d0081208c2382a44"
41
41
  }