@readme/markdown 6.39.3 → 6.39.4

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/dist/main.js CHANGED
@@ -28136,7 +28136,7 @@ module.exports = function ImageCompiler() {
28136
28136
  var originalImageCompiler = visitors.image;
28137
28137
 
28138
28138
  visitors.image = function compile(node) {
28139
- var _node$data, _node$data$hPropertie, _visitors$figure;
28139
+ var _node$data, _node$data$hPropertie, _node$data2, _node$data2$hProperti, _visitors$figure;
28140
28140
 
28141
28141
  if (((_node$data = node.data) === null || _node$data === void 0 ? void 0 : (_node$data$hPropertie = _node$data.hProperties) === null || _node$data$hPropertie === void 0 ? void 0 : _node$data$hPropertie.className) === 'emoji') return node.title;
28142
28142
 
@@ -28144,7 +28144,7 @@ module.exports = function ImageCompiler() {
28144
28144
  args[_key - 1] = arguments[_key];
28145
28145
  }
28146
28146
 
28147
- if (node.data.hProperties.width) return (_visitors$figure = visitors.figure).call.apply(_visitors$figure, [this, node].concat(args));
28147
+ if ((_node$data2 = node.data) !== null && _node$data2 !== void 0 && (_node$data2$hProperti = _node$data2.hProperties) !== null && _node$data2$hProperti !== void 0 && _node$data2$hProperti.width) return (_visitors$figure = visitors.figure).call.apply(_visitors$figure, [this, node].concat(args));
28148
28148
  return originalImageCompiler.call.apply(originalImageCompiler, [this, node].concat(args));
28149
28149
  };
28150
28150
  };
package/dist/main.node.js CHANGED
@@ -10959,7 +10959,7 @@ module.exports = function ImageCompiler() {
10959
10959
  var originalImageCompiler = visitors.image;
10960
10960
 
10961
10961
  visitors.image = function compile(node) {
10962
- var _node$data, _node$data$hPropertie, _visitors$figure;
10962
+ var _node$data, _node$data$hPropertie, _node$data2, _node$data2$hProperti, _visitors$figure;
10963
10963
 
10964
10964
  if (((_node$data = node.data) === null || _node$data === void 0 ? void 0 : (_node$data$hPropertie = _node$data.hProperties) === null || _node$data$hPropertie === void 0 ? void 0 : _node$data$hPropertie.className) === 'emoji') return node.title;
10965
10965
 
@@ -10967,7 +10967,7 @@ module.exports = function ImageCompiler() {
10967
10967
  args[_key - 1] = arguments[_key];
10968
10968
  }
10969
10969
 
10970
- if (node.data.hProperties.width) return (_visitors$figure = visitors.figure).call.apply(_visitors$figure, [this, node].concat(args));
10970
+ if ((_node$data2 = node.data) !== null && _node$data2 !== void 0 && (_node$data2$hProperti = _node$data2.hProperties) !== null && _node$data2$hProperti !== void 0 && _node$data2$hProperti.width) return (_visitors$figure = visitors.figure).call.apply(_visitors$figure, [this, node].concat(args));
10971
10971
  return originalImageCompiler.call.apply(originalImageCompiler, [this, node].concat(args));
10972
10972
  };
10973
10973
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@readme/markdown",
3
3
  "description": "ReadMe's React-based Markdown parser",
4
4
  "author": "Rafe Goldberg <rafe@readme.io>",
5
- "version": "6.39.3",
5
+ "version": "6.39.4",
6
6
  "main": "dist/main.node.js",
7
7
  "browser": "dist/main.js",
8
8
  "files": [