@manuscripts/transform 3.0.65 → 3.0.66

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.
@@ -1230,10 +1230,9 @@ class JATSExporter {
1230
1230
  };
1231
1231
  this.appendParagraphToElement = (paragraph, element) => {
1232
1232
  const parsedDoc = new DOMParser().parseFromString(paragraph.textContent, 'text/html');
1233
- const parsedParagraph = parsedDoc.body.querySelector('p');
1234
- if (parsedParagraph) {
1233
+ if (parsedDoc.body.innerHTML.length) {
1235
1234
  const paragraphEl = this.createElement('p');
1236
- paragraphEl.innerHTML = parsedParagraph.innerHTML;
1235
+ paragraphEl.innerHTML = parsedDoc.body.innerHTML;
1237
1236
  paragraphEl.setAttribute('id', normalizeID(paragraph.attrs.id));
1238
1237
  element.appendChild(paragraphEl);
1239
1238
  }
@@ -337,6 +337,11 @@ class JATSDOMParser {
337
337
  };
338
338
  },
339
339
  },
340
+ {
341
+ tag: 'fn[fn-type]',
342
+ context: 'author_notes/',
343
+ ignore: true,
344
+ },
340
345
  {
341
346
  tag: 'fn:not([fn-type])',
342
347
  node: 'footnote',
@@ -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.65";
4
+ exports.VERSION = "3.0.66";
@@ -1222,10 +1222,9 @@ export class JATSExporter {
1222
1222
  };
1223
1223
  this.appendParagraphToElement = (paragraph, element) => {
1224
1224
  const parsedDoc = new DOMParser().parseFromString(paragraph.textContent, 'text/html');
1225
- const parsedParagraph = parsedDoc.body.querySelector('p');
1226
- if (parsedParagraph) {
1225
+ if (parsedDoc.body.innerHTML.length) {
1227
1226
  const paragraphEl = this.createElement('p');
1228
- paragraphEl.innerHTML = parsedParagraph.innerHTML;
1227
+ paragraphEl.innerHTML = parsedDoc.body.innerHTML;
1229
1228
  paragraphEl.setAttribute('id', normalizeID(paragraph.attrs.id));
1230
1229
  element.appendChild(paragraphEl);
1231
1230
  }
@@ -334,6 +334,11 @@ export class JATSDOMParser {
334
334
  };
335
335
  },
336
336
  },
337
+ {
338
+ tag: 'fn[fn-type]',
339
+ context: 'author_notes/',
340
+ ignore: true,
341
+ },
337
342
  {
338
343
  tag: 'fn:not([fn-type])',
339
344
  node: 'footnote',
@@ -1 +1 @@
1
- export const VERSION = "3.0.65";
1
+ export const VERSION = "3.0.66";
@@ -1 +1 @@
1
- export declare const VERSION = "3.0.65";
1
+ export declare const VERSION = "3.0.66";
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.65",
4
+ "version": "3.0.66",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-transform",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",