@manuscripts/transform 3.0.60 → 3.0.61

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.
@@ -825,7 +825,13 @@ class JATSExporter {
825
825
  }
826
826
  return ['disp-quote', { 'content-type': type }, 0];
827
827
  },
828
- quote_image: (node) => createGraphic(node),
828
+ quote_image: (node) => {
829
+ const img = node;
830
+ if (img.attrs.src) {
831
+ return createGraphic(node);
832
+ }
833
+ return '';
834
+ },
829
835
  graphical_abstract_section: (node) => {
830
836
  const attrs = {
831
837
  id: normalizeID(node.attrs.id),
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = "3.0.60";
4
+ exports.VERSION = "3.0.61";
@@ -817,7 +817,13 @@ export class JATSExporter {
817
817
  }
818
818
  return ['disp-quote', { 'content-type': type }, 0];
819
819
  },
820
- quote_image: (node) => createGraphic(node),
820
+ quote_image: (node) => {
821
+ const img = node;
822
+ if (img.attrs.src) {
823
+ return createGraphic(node);
824
+ }
825
+ return '';
826
+ },
821
827
  graphical_abstract_section: (node) => {
822
828
  const attrs = {
823
829
  id: normalizeID(node.attrs.id),
@@ -1 +1 @@
1
- export const VERSION = "3.0.60";
1
+ export const VERSION = "3.0.61";
@@ -1 +1 @@
1
- export declare const VERSION = "3.0.60";
1
+ export declare const VERSION = "3.0.61";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@manuscripts/transform",
3
3
  "description": "ProseMirror transformer for Manuscripts applications",
4
- "version": "3.0.60",
4
+ "version": "3.0.61",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-transform",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",